All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	"Lai Jiangshan" <laijs@cn.fujitsu.com>,
	"Joonsoo Kim" <js1304@gmail.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>, "Jiri Kosina" <jkosina@suse.cz>,
	emilgoode@gmail.com, "Bruno Prémont" <bonbons@linux-vserver.org>
Subject: [PATCH] HID: picoLCD: Remove use of deprecated function
Date: Tue, 2 Oct 2012 17:06:55 +0900	[thread overview]
Message-ID: <20121002080655.GA8717@localhost> (raw)
In-Reply-To: <20121002070010.GB6144@localhost>

From: Emil Goode <emilgoode@gmail.com>

The flush_delayed_work_sync function is deprecated,
we can instead call flush_delayed_work directly.

Sparse is giving a warning:
drivers/hid/hid-picolcd_fb.c:611:2: warning:
	‘flush_delayed_work_sync’ is deprecated
	(declared at include/linux/workqueue.h:454)
	[-Wdeprecated-declarations]

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Acked-by: Bruno Prémont <bonbons@linux-vserver.org>
---
This can be applied as part of the merge or on top after merge.

Thanks.

 drivers/hid/hid-picolcd_fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/hid-picolcd_fb.c b/drivers/hid/hid-picolcd_fb.c
index 0008a51..eb00357 100644
--- a/drivers/hid/hid-picolcd_fb.c
+++ b/drivers/hid/hid-picolcd_fb.c
@@ -608,7 +608,7 @@ void picolcd_exit_framebuffer(struct picolcd_data *data)
 	/* make sure there is no running update - thus that fbdata->picolcd
 	 * once obtained under lock is guaranteed not to get free() under
 	 * the feet of the deferred work */
-	flush_delayed_work_sync(&info->deferred_work);
+	flush_delayed_work(&info->deferred_work);
 
 	data->fb_info = NULL;
 	unregister_framebuffer(info);

  parent reply	other threads:[~2012-10-02  8:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02  7:00 [GIT PULL] workqueue changes for v3.7-rc1 Tejun Heo
2012-10-02  7:23 ` Ingo Molnar
2012-10-02  8:06 ` Tejun Heo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-09-06 14:46 [PATCH] HID: picoLCD: Remove use of deprecated function Emil Goode
2012-09-06 14:46 ` Emil Goode
2012-09-06 14:46 ` Emil Goode
2012-09-06 20:12 ` Bruno Prémont
2012-09-06 20:12   ` Bruno Prémont
2012-09-06 20:12   ` Bruno Prémont
2012-09-06 20:15   ` Tejun Heo
2012-09-06 20:15     ` Tejun Heo
2012-09-06 20:15     ` Tejun Heo
2012-09-07 13:11     ` Jiri Kosina
2012-09-07 13:11       ` Jiri Kosina
2012-09-07 13:11       ` Jiri Kosina
2012-10-01 22:18     ` Jiri Kosina
2012-10-01 22:18       ` Jiri Kosina
2012-10-01 22:18       ` Jiri Kosina
2012-10-02  5:51       ` Tejun Heo
2012-10-02  5:51         ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121002080655.GA8717@localhost \
    --to=tj@kernel.org \
    --cc=bonbons@linux-vserver.org \
    --cc=emilgoode@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=js1304@gmail.com \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.