Skip to contentSkip to conversation

fb_defio: don't use flush_scheduled_work()

PATCH RESEND New Tejun Heo 1 participant 1 message Jan 24, 2011 Framebuffer layer

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH RESEND 1/1 fb_defio: don't use flush_scheduled_work()

flush_scheduled_work() scheduled for deprecation. Sync cancel info->deferred_work directly instead.

---
Resent because email address [email protected] from MAINTAINERS failed. Jaya, please update the MAINTAINERS entry. Thank you.

 drivers/video/fb_defio.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/video/fb_defio.c +1 -2
Index: work/drivers/video/fb_defio.c
===================================================================
@@ -216,8 +216,7 @@ void fb_deferred_io_cleanup(struct fb_in
 	int i;
 
 	BUG_ON(!fbdefio);
-	cancel_delayed_work(&info->deferred_work);
-	flush_scheduled_work();
+	cancel_delayed_work_sync(&info->deferred_work);
 
 	/* clear out the mapping that we setup */
 	for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) {