Commit 8f115cd5 authored by Richard Purdie's avatar Richard Purdie

leds: Fix locomo LED driver oops

Fix locomo-leds to use the correct struct device to prevent an oops.
Signed-off-by: default avatarRichard Purdie <rpurdie@rpsys.net>
parent 72f8da32
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
static void locomoled_brightness_set(struct led_classdev *led_cdev, static void locomoled_brightness_set(struct led_classdev *led_cdev,
enum led_brightness value, int offset) 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; unsigned long flags;
local_irq_save(flags); local_irq_save(flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment