diff --git a/patch/kernel/archive/rockchip64-6.12/general-driver-tm16xx-led-driver.patch b/patch/kernel/archive/rockchip64-6.12/general-driver-tm16xx-led-driver.patch index 9a2b5d41f7de..dc42841a45df 100644 --- a/patch/kernel/archive/rockchip64-6.12/general-driver-tm16xx-led-driver.patch +++ b/patch/kernel/archive/rockchip64-6.12/general-driver-tm16xx-led-driver.patch @@ -987,6 +987,10 @@ index 000000000000..111111111111 + return ret; + } + ++ mutex_init(&display->lock); ++ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness); ++ INIT_WORK(&display->flush_display, tm16xx_display_flush_data); ++ + display->main_led.name = TM16XX_DEVICE_NAME; + display->main_led.brightness = display->controller->max_brightness; + display->main_led.max_brightness = display->controller->max_brightness; @@ -1036,10 +1040,6 @@ index 000000000000..111111111111 + i++; + } + -+ mutex_init(&display->lock); -+ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness); -+ INIT_WORK(&display->flush_display, tm16xx_display_flush_data); -+ + ret = tm16xx_display_init(display); + if (ret < 0) { + dev_err(display->dev, "Failed to initialize display: %d\n", ret); diff --git a/patch/kernel/archive/rockchip64-6.6/general-driver-tm16xx-led-driver.patch b/patch/kernel/archive/rockchip64-6.6/general-driver-tm16xx-led-driver.patch index e009ad77ce23..2220db3a942e 100644 --- a/patch/kernel/archive/rockchip64-6.6/general-driver-tm16xx-led-driver.patch +++ b/patch/kernel/archive/rockchip64-6.6/general-driver-tm16xx-led-driver.patch @@ -988,6 +988,10 @@ index 000000000000..d938b0166e74 + return ret; + } + ++ mutex_init(&display->lock); ++ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness); ++ INIT_WORK(&display->flush_display, tm16xx_display_flush_data); ++ + display->main_led.name = TM16XX_DEVICE_NAME; + display->main_led.brightness = display->controller->max_brightness; + display->main_led.max_brightness = display->controller->max_brightness; @@ -1037,10 +1041,6 @@ index 000000000000..d938b0166e74 + i++; + } + -+ mutex_init(&display->lock); -+ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness); -+ INIT_WORK(&display->flush_display, tm16xx_display_flush_data); -+ + ret = tm16xx_display_init(display); + if (ret < 0) { + dev_err(display->dev, "Failed to initialize display: %d\n", ret);