diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-10-12 11:21:59 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-10-12 11:21:59 +0000 |
commit | 4bc640743a56ddad268e8d74807c6b6b9fc42956 (patch) | |
tree | 6c22ad665bb1ad9b3eeab60b61f39a0bc6a50a7e /target/linux/rdc/files | |
parent | 61c5597d73c27f7c09a335b707bebcf81d259051 (diff) | |
download | upstream-4bc640743a56ddad268e8d74807c6b6b9fc42956.tar.gz upstream-4bc640743a56ddad268e8d74807c6b6b9fc42956.tar.bz2 upstream-4bc640743a56ddad268e8d74807c6b6b9fc42956.zip |
Upgrade rdc to 2.6.23, fix the r6040 driver printk's
SVN-Revision: 9267
Diffstat (limited to 'target/linux/rdc/files')
-rw-r--r-- | target/linux/rdc/files/arch/i386/mach-rdc/platform.c | 14 | ||||
-rw-r--r-- | target/linux/rdc/files/drivers/net/r6040.c | 4 |
2 files changed, 3 insertions, 15 deletions
diff --git a/target/linux/rdc/files/arch/i386/mach-rdc/platform.c b/target/linux/rdc/files/arch/i386/mach-rdc/platform.c index 877287b856..0a607223c5 100644 --- a/target/linux/rdc/files/arch/i386/mach-rdc/platform.c +++ b/target/linux/rdc/files/arch/i386/mach-rdc/platform.c @@ -29,14 +29,10 @@ #include <linux/device.h> #include <linux/platform_device.h> #include <linux/version.h> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) #include <linux/leds.h> -#endif #include <asm/gpio.h> -#define PFX "rdc321x: " - /* Flash */ static struct resource rdc_flash_resource[] = { [0] = { @@ -54,9 +50,8 @@ static struct platform_device rdc_flash_device = { }; /* LEDS */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) static struct gpio_led default_leds[] = { - { .name = "rdc:dmz", .gpio = 1, }, + { .name = "rdc321x:dmz", .gpio = 1, }, }; static struct gpio_led_platform_data rdc321x_led_data = { @@ -71,13 +66,6 @@ static struct platform_device rdc321x_leds = { .platform_data = &rdc321x_led_data, } }; -#else -static struct platform_device rdc321x_leds = { - .name = "rdc321x-leds", - .id = -1, - .num_resources = 0, -}; -#endif /* Watchdog */ static struct platform_device rdc321x_wdt = { diff --git a/target/linux/rdc/files/drivers/net/r6040.c b/target/linux/rdc/files/drivers/net/r6040.c index 38d80c7134..e2044c9ad9 100644 --- a/target/linux/rdc/files/drivers/net/r6040.c +++ b/target/linux/rdc/files/drivers/net/r6040.c @@ -229,7 +229,7 @@ static int __devinit r6040_init_one (struct pci_dev *pdev, RDC_DBUG("r6040_init_one()", 0); if (printed_version++) - printk(KERN_INFO version); + printk(KERN_INFO "%s\n", version); err = pci_enable_device(pdev); if (err) @@ -1021,7 +1021,7 @@ static int __init r6040_init (void) { RDC_DBUG("r6040_init()", 0); - printk(KERN_INFO version); + printk(KERN_INFO "%s\n", version); printed_version = 1; if (parent != NULL) { |