projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72f8da3
)
leds: Fix locomo LED driver oops
author
Richard Purdie
<rpurdie@rpsys.net>
Mon, 31 Dec 2007 23:11:11 +0000
(23:11 +0000)
committer
Richard Purdie
<rpurdie@rpsys.net>
Mon, 31 Dec 2007 23:11:11 +0000
(23:11 +0000)
Fix locomo-leds to use the correct struct device to prevent an oops.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/leds/leds-locomo.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-locomo.c
b/drivers/leds/leds-locomo.c
index bfac499f3258f74fd2c96267c7e9b9a5361a72bf..2207335e9212e97b64a05bdd290819ceee83a89d 100644
(file)
--- a/
drivers/leds/leds-locomo.c
+++ b/
drivers/leds/leds-locomo.c
@@
-19,7
+19,7
@@
static void locomoled_brightness_set(struct led_classdev *led_cdev,
enum led_brightness value, int offset)
{
- struct locomo_dev *locomo_dev = LOCOMO_DEV(led_cdev->dev);
+ struct locomo_dev *locomo_dev = LOCOMO_DEV(led_cdev->dev
->parent
);
unsigned long flags;
local_irq_save(flags);