From 1aaf14ee09dc8242ee644d0320505e0f1bcbfba7 Mon Sep 17 00:00:00 2001 From: ejka Date: Thu, 11 Oct 2007 01:44:00 +0000 Subject: [PATCH] remove version checks git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9253 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar7/files/arch/mips/ar7/platform.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c index 8f410babe..c2629861e 100644 --- a/target/linux/ar7/files/arch/mips/ar7/platform.c +++ b/target/linux/ar7/files/arch/mips/ar7/platform.c @@ -30,9 +30,7 @@ #include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) #include -#endif #include #include @@ -320,7 +318,6 @@ static struct platform_device uart = { }; #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) static struct gpio_led default_leds[] = { { .name = "status", .gpio = 8, .active_low = 1, }, }; @@ -350,7 +347,6 @@ static struct platform_device ar7_gpio_leds = { .platform_data = &ar7_led_data, } }; -#endif static struct platform_device ar7_udc = { .id = -1, @@ -476,12 +472,10 @@ static int __init ar7_register_devices(void) if (res) return res; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) #warning FIXME: add model detection ar7_led_data.num_leds = ARRAY_SIZE(default_leds); ar7_led_data.leds = default_leds; res = platform_device_register(&ar7_gpio_leds); -#endif if (res) return res; -- 2.35.1