linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fb_defio: don't use flush_scheduled_work()
@ 2011-01-24 15:02 Tejun Heo
  0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2011-01-24 15:02 UTC (permalink / raw)
  To: Jaya Kumar; +Cc: linux-kernel

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

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jaya Kumar <jayalk@intworks.biz>
---
 drivers/video/fb_defio.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: work/drivers/video/fb_defio.c
===================================================================
--- work.orig/drivers/video/fb_defio.c
+++ 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) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-24 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 15:02 [PATCH] fb_defio: don't use flush_scheduled_work() Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).