projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76fdf7d
)
remove version checks
author
Eugene Konev
<ejka@imfi.kspu.ru>
Thu, 11 Oct 2007 01:44:00 +0000
(
01:44
+0000)
committer
Eugene Konev
<ejka@imfi.kspu.ru>
Thu, 11 Oct 2007 01:44:00 +0000
(
01:44
+0000)
SVN-Revision: 9253
target/linux/ar7/files/arch/mips/ar7/platform.c
patch
|
blob
|
history
diff --git
a/target/linux/ar7/files/arch/mips/ar7/platform.c
b/target/linux/ar7/files/arch/mips/ar7/platform.c
index 8f410babe72e82202d467aa1e69f4d1448666c46..c2629861e13478137dc718a4600a9afd3480a960 100644
(file)
--- 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 <linux/io.h>
#include <linux/version.h>
#include <linux/vlynq.h>
#include <linux/io.h>
#include <linux/version.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/ar7/ar7.h>
#include <asm/addrspace.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[] = {
{ .name = "status", .gpio = 8, .active_low = 1, },
};
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,
}
};
.platform_data = &ar7_led_data,
}
};
-#endif
static struct platform_device ar7_udc = {
.id = -1,
static struct platform_device ar7_udc = {
.id = -1,
@@
-476,12
+472,10
@@
static int __init ar7_register_devices(void)
if (res)
return res;
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);
#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;
if (res)
return res;