From: Richard Purdie Date: Mon, 31 Dec 2007 23:11:11 +0000 (+0000) Subject: leds: Fix locomo LED driver oops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f115cd580121a169cc964e1b3288f3116c67f3e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 bfac499f3258..2207335e9212 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);