lp8550_brightness_work is not safe to call from multiple threads,
use the non-reentrant workqueue.
Change-Id: Ic7da3122fc6f800e4f2a849d2e2d379bbd8431a4
Signed-off-by: Colin Cross <ccross@android.com>
led_data->brightness = brightness;
if (!led_data->suspended)
- schedule_work(&led_data->wq);
+ queue_work(system_nrt_wq, &led_data->wq);
}
EXPORT_SYMBOL(ld_lp8550_brightness_set);
struct lp8550_data *led_data =
container_of(h, struct lp8550_data, early_suspender);
led_data->suspended = false;
- schedule_work(&led_data->wq);
+ queue_work(system_nrt_wq, &led_data->wq);
}
#endif