summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
84eb9e7)
#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 <asm/addrspace.h>
#include <asm/ar7/ar7.h>
#include <asm/addrspace.h>
#include <asm/ar7/ar7.h>
-#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, },
};
.platform_data = &ar7_led_data,
}
};
.platform_data = &ar7_led_data,
}
};
static struct platform_device ar7_udc = {
.id = -1,
static struct platform_device ar7_udc = {
.id = -1,
-#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);