We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b36c9 commit 61a5c56Copy full SHA for 61a5c56
drivers/video/backlight/led_bl.c
@@ -229,8 +229,11 @@ static void led_bl_remove(struct platform_device *pdev)
229
backlight_device_unregister(bl);
230
231
led_bl_power_off(priv);
232
- for (i = 0; i < priv->nb_leds; i++)
+ for (i = 0; i < priv->nb_leds; i++) {
233
+ mutex_lock(&priv->leds[i]->led_access);
234
led_sysfs_enable(priv->leds[i]);
235
+ mutex_unlock(&priv->leds[i]->led_access);
236
+ }
237
}
238
239
static const struct of_device_id led_bl_of_match[] = {
0 commit comments