projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the gpio handling and flash resource declaration, thanks to Daniel Gimpelevich
[openwrt-10.03/.git]
/
target
/
linux
/
rdc-2.6
/
files
/
drivers
/
leds
/
leds-rdc3211.c
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 6a15a16ad539607ab12decbdbf9765a4bd974d88..f29047340e412e49f23388504c8ea4251b4f9a1f 100644
(file)
--- 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 */
#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");
module_param(gpio, int, 0444);
MODULE_PARM_DESC(gpio, " GPIO line");
@@
-58,7
+58,7
@@
static int __init rdc321x_leds_init(void)
{
int ret;
{
int ret;
- ret =
platform_driver_register(&rdc321x_leds_driver)
;
+ ret =
gpio+1?platform_driver_register(&rdc321x_leds_driver):-EINVAL
;
return ret;
}
return ret;
}