projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
leds: pca9532: Assign gpio base dynamically
[linux-2.6-microblaze.git]
/
drivers
/
leds
/
leds-pca9532.c
diff --git
a/drivers/leds/leds-pca9532.c
b/drivers/leds/leds-pca9532.c
index
27d0271
..
017794b
100644
(file)
--- a/
drivers/leds/leds-pca9532.c
+++ b/
drivers/leds/leds-pca9532.c
@@
-480,6
+480,8
@@
pca9532_of_populate_pdata(struct device *dev, struct device_node *np)
if (!pdata)
return ERR_PTR(-ENOMEM);
+ pdata->gpio_base = -1;
+
of_property_read_u8_array(np, "nxp,pwm", &pdata->pwm[0],
ARRAY_SIZE(pdata->pwm));
of_property_read_u8_array(np, "nxp,psc", &pdata->psc[0],