diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-08-07 09:12:09 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-08-07 09:12:09 +0000 |
commit | e8e165989de334c8b2bd735f31b1b9f7009abcc6 (patch) | |
tree | 930f467989f1e2507454640de05a859e481bc3e3 /target/linux/rdc-2.6/files/drivers/leds | |
parent | a9dd50e816369a128ecbb5bd5153cb6ad3ac40b0 (diff) | |
download | master-187ad058-e8e165989de334c8b2bd735f31b1b9f7009abcc6.tar.gz master-187ad058-e8e165989de334c8b2bd735f31b1b9f7009abcc6.tar.bz2 master-187ad058-e8e165989de334c8b2bd735f31b1b9f7009abcc6.zip |
Fix the gpio handling and flash resource declaration, thanks to Daniel Gimpelevich
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8366 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc-2.6/files/drivers/leds')
-rw-r--r-- | target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c b/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c index 6a15a16ad5..f29047340e 100644 --- a/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c +++ b/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c @@ -19,7 +19,7 @@ #include <asm/gpio.h> /* This is just for testing purpose */ -int gpio; +int gpio=-1; module_param(gpio, int, 0444); MODULE_PARM_DESC(gpio, " GPIO line"); @@ -58,7 +58,7 @@ static int __init rdc321x_leds_init(void) { int ret; - ret = platform_driver_register(&rdc321x_leds_driver); + ret = gpio+1?platform_driver_register(&rdc321x_leds_driver):-EINVAL; return ret; } |