--- zzzz-none-000/linux-3.10.107/drivers/video/backlight/hp680_bl.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/video/backlight/hp680_bl.c 2021-02-04 17:41:59.000000000 +0000 @@ -110,8 +110,8 @@ memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_RAW; props.max_brightness = HP680_MAX_INTENSITY; - bd = backlight_device_register("hp680-bl", &pdev->dev, NULL, - &hp680bl_ops, &props); + bd = devm_backlight_device_register(&pdev->dev, "hp680-bl", &pdev->dev, + NULL, &hp680bl_ops, &props); if (IS_ERR(bd)) return PTR_ERR(bd); @@ -131,8 +131,6 @@ bd->props.power = 0; hp680bl_send_intensity(bd); - backlight_device_unregister(bd); - return 0; }