From f865734d3cf58cc9aba3f58962fbca7b97fe47d4 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 11 Nov 2015 10:07:04 +0100 Subject: [PATCH] greybus: light: fix class-device parent Greybus bundle drivers should register their class devices as children to the bundle device that they bind to. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/light.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c index 664be973fa96..3723a2ce29b3 100644 --- a/drivers/staging/greybus/light.c +++ b/drivers/staging/greybus/light.c @@ -724,8 +724,7 @@ static int __gb_lights_flash_led_register(struct gb_channel *channel) goto fail; } - ret = led_classdev_flash_register(&connection->bundle->intf->dev, - fled); + ret = led_classdev_flash_register(&connection->bundle->dev, fled); if (ret < 0) goto fail; @@ -812,8 +811,7 @@ static int __gb_lights_led_register(struct gb_channel *channel) struct led_classdev *cdev = get_channel_cdev(channel); int ret; - ret = led_classdev_register(&connection->bundle->intf->dev, - cdev); + ret = led_classdev_register(&connection->bundle->dev, cdev); if (ret < 0) channel->led = NULL; else -- 2.20.1