From patchwork Thu Sep 21 11:05:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9963691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 87FC86056A for ; Thu, 21 Sep 2017 11:05:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7ABB629460 for ; Thu, 21 Sep 2017 11:05:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F8EF29463; Thu, 21 Sep 2017 11:05:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52CFB29460 for ; Thu, 21 Sep 2017 11:05:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751640AbdIULFi (ORCPT ); Thu, 21 Sep 2017 07:05:38 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36131 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751550AbdIULFh (ORCPT ); Thu, 21 Sep 2017 07:05:37 -0400 Received: by mail-pg0-f68.google.com with SMTP id d8so3256483pgt.3; Thu, 21 Sep 2017 04:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=hvq1QZTAFak+jrEajKS1Xncp8Zi2fFXgRpHJQgTx8bY=; b=O0RzXKVGRP6OrB/9DyVNT+ZLSQZoZ9oy1n5MaNvur/p+DQcvs+Di1cU+KTGV8XrAvu vdzVgrHwkrfbcb63OM/jceM8vkJ6LKAAen80cuaGbeJfl+4oXzvFG2K3EQVFPOF5Ad1/ eOV+gvVYlj0lnmeUhAL5+jEkSOQbkzpocG+N9B/nT8EAKpeNo6ciGHm76pnQaGCoP51z 8fkExAwcxvcBn40V2ktykXs5UyoKvQi4MBGc85hHYGHqHOVVbp9ZYvUEV8d8+BP0NtxT fj4SZdG8MfBC8wAmE+ctIjOjEXGIPkNCU6LLYqm/DD0FDKWIgSCt+tbJK1dDLa2h629Z dCGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hvq1QZTAFak+jrEajKS1Xncp8Zi2fFXgRpHJQgTx8bY=; b=r1C25os3047mF4qprOeGZ7lU7X4IACwi8iIviApMnhFFls1ANx2vTPu0FiSA27sO0l Z8VDFnfHuMK6p94gND44a6oudFJlZTxKChxMpFb7dUqXi2NMlsyJR4j9DVcSvp8o9EzU L08SiKb32LfZZ53oBMKojE2WxPMBSv2AOQirrw84g/UJ5NOGuUiD59qK7dKbrcyEB3Sf 4aREINJ0fyHEFq4EYI89K0w31nlolU6Lcru7tCCO1hTenMkV92TLT9mVVzJcd1dTYeAI ourFE4E53B5d4czzaAr1cRrFojUcOQxLEcT0JEyW/6iSr94HdKgTIxQSmvVcqAJKrF6y 8jog== X-Gm-Message-State: AHPjjUiO5w0mHNly+Pnt6h0BS/XdETOHoUMYF2+9KpFOSSuxY40qTlWQ 7uIER2w6A23weIGPk1OOvib8DLiW X-Google-Smtp-Source: AOwi7QCRQYmfIvXOgZqQ2l3U6KrMRPD6dNw5QN8akB1XLYQc85QC8o5jC68ko82tIULrhM8Hqjjl9A== X-Received: by 10.101.66.74 with SMTP id d10mr5375491pgq.435.1505991936945; Thu, 21 Sep 2017 04:05:36 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm2296987pfa.153.2017.09.21.04.05.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 04:05:35 -0700 (PDT) From: Allen Pais To: linux-kernel@vger.kernel.org Cc: b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, Allen Pais Subject: [PATCH 1/1] drivers:video: use setup_timer Date: Thu, 21 Sep 2017 16:35:31 +0530 Message-Id: <1505991931-30437-1-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/video/fbdev/pxa3xx-gcu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c index 933619d..c474751 100644 --- a/drivers/video/fbdev/pxa3xx-gcu.c +++ b/drivers/video/fbdev/pxa3xx-gcu.c @@ -520,9 +520,7 @@ static void pxa3xx_gcu_debug_timedout(unsigned long ptr) QERROR("Timer DUMP"); /* init the timer structure */ - init_timer(&pxa3xx_gcu_debug_timer); - pxa3xx_gcu_debug_timer.function = pxa3xx_gcu_debug_timedout; - pxa3xx_gcu_debug_timer.data = ptr; + setup_timer(&pxa3xx_gcu_debug_timer, pxa3xx_gcu_debug_timeout, ptr); pxa3xx_gcu_debug_timer.expires = jiffies + 5*HZ; /* one second */ add_timer(&pxa3xx_gcu_debug_timer);