From f8d3e260f1a5955c822f88294616287a95e4800a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 25 Apr 2011 14:18:18 -0700 Subject: [PATCH] leds: lp8550: Use non-reentrant workqueue lp8550_brightness_work is not safe to call from multiple threads, use the non-reentrant workqueue. Change-Id: Ic7da3122fc6f800e4f2a849d2e2d379bbd8431a4 Signed-off-by: Colin Cross --- drivers/leds/leds-lp8550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-lp8550.c b/drivers/leds/leds-lp8550.c index 9504ea8785bd..aa7f1a4c6981 100755 --- a/drivers/leds/leds-lp8550.c +++ b/drivers/leds/leds-lp8550.c @@ -193,7 +193,7 @@ static void ld_lp8550_brightness_set(struct led_classdev *led_cdev, 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); @@ -352,7 +352,7 @@ static void lp8550_late_resume(struct early_suspend *h) 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 -- 2.34.1