提交 8f115cd5 编写于 作者: R Richard Purdie

leds: Fix locomo LED driver oops

Fix locomo-leds to use the correct struct device to prevent an oops.
Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
上级 72f8da32
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册