diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-12-31 23:11:11 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-12-31 23:11:11 +0000 |
commit | 8f115cd580121a169cc964e1b3288f3116c67f3e (patch) | |
tree | ff43eca9a0d15103043602d9d5b1b22a40344e36 /drivers/leds/leds-locomo.c | |
parent | 72f8da329e07ad8a72c1f0e96b8955cfeb7c7329 (diff) | |
download | kernel_samsung_smdk4412-8f115cd580121a169cc964e1b3288f3116c67f3e.zip kernel_samsung_smdk4412-8f115cd580121a169cc964e1b3288f3116c67f3e.tar.gz kernel_samsung_smdk4412-8f115cd580121a169cc964e1b3288f3116c67f3e.tar.bz2 |
leds: Fix locomo LED driver oops
Fix locomo-leds to use the correct struct device to prevent an oops.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/leds/leds-locomo.c')
-rw-r--r-- | drivers/leds/leds-locomo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-locomo.c b/drivers/leds/leds-locomo.c index bfac499..2207335 100644 --- 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); |