@@ -961,11 +961,9 @@ static int max77693_register_led(struct max77693_sub_led *sub_led,
max77693_init_v4l2_flash_config(sub_led, led_cfg, &v4l2_sd_cfg);
- fled_cdev->led_cdev.dev->of_node = sub_node;
-
/* Register in the V4L2 subsystem. */
- sub_led->v4l2_flash = v4l2_flash_init(fled_cdev, &v4l2_flash_ops,
- &v4l2_sd_cfg);
+ sub_led->v4l2_flash = v4l2_flash_init(dev, sub_node, fled_cdev,
+ &v4l2_flash_ops, &v4l2_sd_cfg);
if (IS_ERR(sub_led->v4l2_flash)) {
ret = PTR_ERR(sub_led->v4l2_flash);
goto err_v4l2_flash_init;
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> --- drivers/leds/leds-max77693.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)