From patchwork Mon Sep 12 09:15:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 75976 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp751768qgf; Mon, 12 Sep 2016 02:16:23 -0700 (PDT) X-Received: by 10.98.100.73 with SMTP id y70mr31590045pfb.84.1473671781129; Mon, 12 Sep 2016 02:16:21 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si20826193paj.25.2016.09.12.02.16.20; Mon, 12 Sep 2016 02:16:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757478AbcILJQP (ORCPT + 27 others); Mon, 12 Sep 2016 05:16:15 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35923 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757362AbcILJQK (ORCPT ); Mon, 12 Sep 2016 05:16:10 -0400 Received: by mail-wm0-f43.google.com with SMTP id b187so125155181wme.1 for ; Mon, 12 Sep 2016 02:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EKTxaYkzboIRGQ8zxlisuKJUt4VPmktWk1jJPRl619Q=; b=BRX4+Pcl/m77K/oQTA2s0nyH4piNH/hiyAvJeyZp6gL4KY8OLOL+fXtF4tzkRn0+Is /V2EY3Aj5QaAS32KNI3dO7XNT1Ip2R5d09fMvqBhl2YNyWdZH2sNGhH1p+Y+EpW7Cx3L 2yRTlgx3jDbBP24yV9SXR3pdt4uyWiVczhEI8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EKTxaYkzboIRGQ8zxlisuKJUt4VPmktWk1jJPRl619Q=; b=l5+GOktgYIeDwUHVlfA1zZFmVcDk/0wiW88HZcu+bglb1YB5UR0gwK892YSTO0iSoD 9qWFStJrwI8FC5Aepc60XjL0Mabkwt/Xc1L6/whzo51/wKxrAkL9tuN+QkrdLZ34lOc5 pRJnCWlzuMG03n2GZB8FkKejCHMxq5cpkTFmlxIBoglFW3kVGz9wCfVS7qbe+ZcvpLl7 e0MYFxiirZ2PPHSRurnCF5nt4iic9M0t/N6lt6YzxxENG1E+lNcZvu8xm5wr38q5erQS kPn/0+U7UTPtPuelIh8QkObRfqgQgwXr5c72NBNQw/6ewOZt5HmKLcos5/pVD+JjVqp7 1i+w== X-Gm-Message-State: AE9vXwP/GP3DyN2a+uMAb/Es6gnYpDH/3d98X8gZ+ToON9F2Wu0mrMdezKqA+oW4cLpJ2a1W X-Received: by 10.28.103.133 with SMTP id b127mr9239377wmc.82.1473671769284; Mon, 12 Sep 2016 02:16:09 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:e089:f01a:f419:f17e]) by smtp.gmail.com with ESMTPSA id va3sm16939362wjb.18.2016.09.12.02.16.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 02:16:08 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, Joel Stanley Subject: [PATCH 4/9] clocksource/drivers/moxart: Replace setup_irq by request_irq Date: Mon, 12 Sep 2016 11:15:42 +0200 Message-Id: <1473671747-9400-4-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473671747-9400-1-git-send-email-daniel.lezcano@linaro.org> References: <1473671747-9400-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Save memory space and line of code by replacing setup_irq by request_irq. Signed-off-by: Daniel Lezcano Acked-by: Joel Stanley --- drivers/clocksource/moxart_timer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/clocksource/moxart_timer.c b/drivers/clocksource/moxart_timer.c index ad2bead9..cba25b7 100644 --- a/drivers/clocksource/moxart_timer.c +++ b/drivers/clocksource/moxart_timer.c @@ -79,7 +79,6 @@ struct moxart_timer { unsigned int t1_enable_val; unsigned int count_per_tick; struct clock_event_device clkevt; - struct irqaction act; }; static inline struct moxart_timer *to_moxart(struct clock_event_device *evt) @@ -201,10 +200,6 @@ static int __init moxart_timer_init(struct device_node *node) timer->clkevt.set_next_event = moxart_clkevt_next_event; timer->clkevt.cpumask = cpumask_of(0); timer->clkevt.irq = irq; - timer->act.name = node->name; - timer->act.flags = IRQF_TIMER; - timer->act.handler = moxart_timer_interrupt; - timer->act.dev_id = &timer->clkevt; ret = clocksource_mmio_init(timer->base + TIMER2_BASE + REG_COUNT, "moxart_timer", pclk, 200, 32, @@ -214,7 +209,8 @@ static int __init moxart_timer_init(struct device_node *node) return ret; } - ret = setup_irq(irq, &timer->act); + ret = request_irq(irq, moxart_timer_interrupt, IRQF_TIMER, + node->name, &timer->clkevt); if (ret) { pr_err("%s: setup_irq failed\n", node->full_name); return ret;