From patchwork Mon Mar 30 20:17:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 46552 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41893218BE for ; Mon, 30 Mar 2015 20:21:07 +0000 (UTC) Received: by wgym13 with SMTP id m13sf8183660wgy.2 for ; Mon, 30 Mar 2015 13:21:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=SHB6CwDq8q8SYv2CkPQXur72ehu+O0yQAoDZi4XmFl4=; b=OVKm383OU0S6ZUPtVoeEkMA1nbR1s3MVmmD+uP/eAQ+e5EhM0IeRezjG9vM+593DNo s7n71zT9CvI25CSY5f8NuNfe83VWXbmDh1/dK6G7UT8jg9N9NjXBOzZPLvFNhnnUV1eE bB4gVYy2LZok70qs3g/d8Zg/bVeBscprUBaJP0QwlijsW4NU6zOXoiqge/vX3GpbL29H b5ZRGCMBBcx5F3Sdb+FQ1BHRajUJRzQ95loosmLahwwjoEdM5/SyoYxHt2xCp+9fvNKO 9L2fhzylo24ZrmlHC0QBtDja1x2SJcR9Ri2ESY4oOIV0n7RnpLVVPvUrNljif1//ozSf 31CQ== X-Gm-Message-State: ALoCoQlYKEPycDy6kfx5Wd7n6kfywAzw/lukWYjxtES7wWU24vgF5ihdP9A1kRs06pj+aKfFnLTt X-Received: by 10.112.166.164 with SMTP id zh4mr4859013lbb.20.1427746866512; Mon, 30 Mar 2015 13:21:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.5 with SMTP id lg5ls502432lab.106.gmail; Mon, 30 Mar 2015 13:21:06 -0700 (PDT) X-Received: by 10.152.5.170 with SMTP id t10mr27876528lat.43.1427746866302; Mon, 30 Mar 2015 13:21:06 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id t17si7742555laz.27.2015.03.30.13.21.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 13:21:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labe2 with SMTP id e2so112852688lab.3 for ; Mon, 30 Mar 2015 13:21:06 -0700 (PDT) X-Received: by 10.152.29.68 with SMTP id i4mr28231052lah.19.1427746866181; Mon, 30 Mar 2015 13:21:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1369558lbq; Mon, 30 Mar 2015 13:21:05 -0700 (PDT) X-Received: by 10.68.132.134 with SMTP id ou6mr60419402pbb.121.1427746864388; Mon, 30 Mar 2015 13:21:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12si7061659pbs.132.2015.03.30.13.21.03; Mon, 30 Mar 2015 13:21:04 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754636AbbC3UU6 (ORCPT + 27 others); Mon, 30 Mar 2015 16:20:58 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:36668 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754496AbbC3URU (ORCPT ); Mon, 30 Mar 2015 16:17:20 -0400 Received: by wgra20 with SMTP id a20so186927999wgr.3 for ; Mon, 30 Mar 2015 13:17:19 -0700 (PDT) X-Received: by 10.180.187.19 with SMTP id fo19mr25769079wic.2.1427746639467; Mon, 30 Mar 2015 13:17:19 -0700 (PDT) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id ha10sm17205957wjc.37.2015.03.30.13.17.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 13:17:18 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, maxime.ripard@free-electrons.com, viresh.kumar@linaro.org, ben.dooks@codethink.co.uk, digetx@gmail.com, hdegoede@redhat.com, laurent.pinchart+renesas@ideasonboard.com Subject: [PATCH 02/11] clocksource: sun5i: Switch to request_irq Date: Mon, 30 Mar 2015 22:17:04 +0200 Message-Id: <1427746633-9137-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427746633-9137-1-git-send-email-daniel.lezcano@linaro.org> References: <5519AEB2.8050306@linaro.org> <1427746633-9137-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Maxime Ripard The current code uses setup_irq, while it could perfectly use the much simpler request_irq. Switch to that. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun5i.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c index 5dcbf90..5320846 100644 --- a/drivers/clocksource/timer-sun5i.c +++ b/drivers/clocksource/timer-sun5i.c @@ -130,13 +130,6 @@ static irqreturn_t sun5i_timer_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static struct irqaction sun5i_timer_irq = { - .name = "sun5i_timer0", - .flags = IRQF_TIMER | IRQF_IRQPOLL, - .handler = sun5i_timer_interrupt, - .dev_id = &sun5i_clockevent, -}; - static u64 sun5i_timer_sched_read(void) { return ~readl(timer_base + TIMER_CNTVAL_LO_REG(1)); @@ -188,7 +181,8 @@ static void __init sun5i_timer_init(struct device_node *node) clockevents_config_and_register(&sun5i_clockevent, rate, TIMER_SYNC_TICKS, 0xffffffff); - ret = setup_irq(irq, &sun5i_timer_irq); + ret = request_irq(irq, sun5i_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL, + "sun5i_timer0", &sun5i_clockevent); if (ret) pr_warn("failed to setup irq %d\n", irq); }