1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 23:17:31 +02:00

remove version checks

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9253 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
ejka 2007-10-11 01:44:00 +00:00
parent 84eb9e7193
commit 1aaf14ee09

View File

@ -30,9 +30,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/version.h> #include <linux/version.h>
#include <linux/vlynq.h> #include <linux/vlynq.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
#include <linux/leds.h> #include <linux/leds.h>
#endif
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/ar7/ar7.h> #include <asm/ar7/ar7.h>
@ -320,7 +318,6 @@ static struct platform_device uart = {
}; };
#endif #endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
static struct gpio_led default_leds[] = { static struct gpio_led default_leds[] = {
{ .name = "status", .gpio = 8, .active_low = 1, }, { .name = "status", .gpio = 8, .active_low = 1, },
}; };
@ -350,7 +347,6 @@ static struct platform_device ar7_gpio_leds = {
.platform_data = &ar7_led_data, .platform_data = &ar7_led_data,
} }
}; };
#endif
static struct platform_device ar7_udc = { static struct platform_device ar7_udc = {
.id = -1, .id = -1,
@ -476,12 +472,10 @@ static int __init ar7_register_devices(void)
if (res) if (res)
return res; return res;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
#warning FIXME: add model detection #warning FIXME: add model detection
ar7_led_data.num_leds = ARRAY_SIZE(default_leds); ar7_led_data.num_leds = ARRAY_SIZE(default_leds);
ar7_led_data.leds = default_leds; ar7_led_data.leds = default_leds;
res = platform_device_register(&ar7_gpio_leds); res = platform_device_register(&ar7_gpio_leds);
#endif
if (res) if (res)
return res; return res;