forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
72f8da329e
commit
8f115cd580
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user