Skip to content

Commit

Permalink
leds: Fix locomo LED driver oops
Browse files Browse the repository at this point in the history
Fix locomo-leds to use the correct struct device to prevent an oops.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
  • Loading branch information
Richard Purdie committed Dec 31, 2007
1 parent 72f8da3 commit 8f115cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-locomo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8f115cd

Please sign in to comment.