From patchwork Wed Sep 12 05:39:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1440971 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1B7643FE79 for ; Wed, 12 Sep 2012 05:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752890Ab2ILFjU (ORCPT ); Wed, 12 Sep 2012 01:39:20 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:44454 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632Ab2ILFjT (ORCPT ); Wed, 12 Sep 2012 01:39:19 -0400 Received: by obbuo13 with SMTP id uo13so2076851obb.19 for ; Tue, 11 Sep 2012 22:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=MaczCqMJWB7ULU3xp6bABf4Od+pODyD6/nTC9SSnl20=; b=rwHPeFRufJRZDrT1jQjYxsyGiJQt3djEBmbqbaEOccN2GwWYjMOFwvCSXo7MivXE4o gpvVh0by62iDsKxO/h7qWBakY4xKtSXdFYrH9K83srDM8gXdFr+U0mcyQmSeQS/2bhrY 5BY3BjYy58nrdjrj1LYmaJ+DwJcTbTroXEglA4Q4agxQeS2lyU+0XtWjHw3Cg2sVOKrH W9kfTsqwQn30HCw7is+dZ2y8WaYsfEtGiyU/zP0nPi1EOXUATWTr5p63Tm8KR6E+ddcX ySrH4Tt0QCkIqCpuBYNYkE4xIxZtdhU1EcsLyX2MIpMSwNXQMBbP6f49WLkY0Wcyjxmw hFoA== Received: by 10.60.8.104 with SMTP id q8mr20396792oea.120.1347428358537; Tue, 11 Sep 2012 22:39:18 -0700 (PDT) Received: from [114.39.104.183] (114-39-104-183.dynamic.hinet.net. [114.39.104.183]) by mx.google.com with ESMTPS id jl8sm19002496obb.18.2012.09.11.22.39.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 22:39:18 -0700 (PDT) Message-ID: <1347428349.14558.1.camel@phoenix> Subject: [PATCH] HID: picolcd_fb: Use flush_delayed_work instead of flush_delayed_work_sync From: Axel Lin To: Tejun Heo , Jiri Kosina Cc: Bruno =?ISO-8859-1?Q?Pr=E9mont?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 12 Sep 2012 13:39:09 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Seems this is a left over of commit 4382973 "workqueue: deprecate flush[_delayed]_work_sync()" This fixes below build warning: CC [M] drivers/hid/hid-picolcd_fb.o drivers/hid/hid-picolcd_fb.c: In function 'picolcd_exit_framebuffer': 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: Axel Lin Cc: Tejun Heo --- 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);