mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:38:27 -04:00
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 <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cd414d4726
commit
f865734d3c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user