Changeset 9253


Ignore:
Timestamp:
2007-10-11T03:44:00+02:00 (10 years ago)
Author:
ejka
Message:

remove version checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar7/files/arch/mips/ar7/platform.c

    r9143 r9253  
    3131#include <linux/version.h> 
    3232#include <linux/vlynq.h> 
    33 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) 
    3433#include <linux/leds.h> 
    35 #endif 
    3634 
    3735#include <asm/addrspace.h> 
     
    321319#endif 
    322320 
    323 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) 
    324321static struct gpio_led default_leds[] = { 
    325322        { .name = "status", .gpio = 8, .active_low = 1, }, 
     
    351348        } 
    352349}; 
    353 #endif 
    354350 
    355351static struct platform_device ar7_udc = { 
     
    477473                return res; 
    478474 
    479 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) 
    480475#warning FIXME: add model detection 
    481476        ar7_led_data.num_leds = ARRAY_SIZE(default_leds); 
    482477        ar7_led_data.leds = default_leds; 
    483478        res = platform_device_register(&ar7_gpio_leds); 
    484 #endif 
    485479        if (res) 
    486480                return res; 
Note: See TracChangeset for help on using the changeset viewer.