From: Richard Purdie Date: Mon, 31 Dec 2007 23:11:11 +0000 (+0000) Subject: leds: Fix locomo LED driver oops X-Git-Tag: v2.6.24-rc7~22^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8f115cd580121a169cc964e1b3288f3116c67f3e;p=linux-2.6-omap-h63xx.git leds: Fix locomo LED driver oops Fix locomo-leds to use the correct struct device to prevent an oops. Signed-off-by: Richard Purdie --- diff --git a/drivers/leds/leds-locomo.c b/drivers/leds/leds-locomo.c index bfac499f325..2207335e921 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);