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>
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;
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