From patchwork Tue Mar 31 10:12:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 46580 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 20945215A7 for ; Tue, 31 Mar 2015 10:13:35 +0000 (UTC) Received: by lbbug6 with SMTP id ug6sf2614812lbb.3 for ; Tue, 31 Mar 2015 03:13:34 -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=khm69WD1uiSP2DOh+ayVAOBM6fU/VHECVY2+ULH2qKE=; b=bHTUN2K+ZmcmUU1BE6mPCC+TQRXRD8bhUMquUlTJQJPmp0vdmhNiLQIpqQ/nDrwCla JghKEFMg4gmFZyvFy3apxhA/7G2EsQPFbtoHBpOxlt0sNqQhD6yL2iBZz38Wf5zTBvKl HkwAz+tiG5/IWv3PfHIsAXiB1PEJ9CE7pRlATH/AxecY/r0UwVBSbSLjaF4ZHs7AEjgZ AcOSZn3fhpV3SW41hsV423jgazinMYHFf0GutuSm8jQnUuxsaDQLoqkbBxba8pH6D1Ix wCi+lfr3LkQcQmAIprEmv0tx3IdyfS+dMCABKJFhY+7B5/OXz4fqsqtV2xz2/KZu+v60 QeTw== X-Gm-Message-State: ALoCoQn7McyP4Bgpo5Q9q9U7UKRzdqMVExChQPTny0yzIWqSl23aBeFEUOxuu5gV/0YTC7GkBQd1 X-Received: by 10.112.167.131 with SMTP id zo3mr8328582lbb.7.1427796814080; Tue, 31 Mar 2015 03:13:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.37 with SMTP id q5ls685906lag.40.gmail; Tue, 31 Mar 2015 03:13:33 -0700 (PDT) X-Received: by 10.112.185.101 with SMTP id fb5mr30870811lbc.12.1427796813841; Tue, 31 Mar 2015 03:13:33 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id df12si1197780lac.57.2015.03.31.03.13.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 03:13:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lahf3 with SMTP id f3so8443043lah.2 for ; Tue, 31 Mar 2015 03:13:33 -0700 (PDT) X-Received: by 10.112.218.5 with SMTP id pc5mr31288886lbc.32.1427796813683; Tue, 31 Mar 2015 03:13:33 -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 k9csp1710051lbq; Tue, 31 Mar 2015 03:13:31 -0700 (PDT) X-Received: by 10.66.183.47 with SMTP id ej15mr24841839pac.34.1427796811024; Tue, 31 Mar 2015 03:13:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zt5si18798399pac.123.2015.03.31.03.13.30; Tue, 31 Mar 2015 03:13:31 -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 S1753728AbbCaKN0 (ORCPT + 27 others); Tue, 31 Mar 2015 06:13:26 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:37488 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420AbbCaKNY (ORCPT ); Tue, 31 Mar 2015 06:13:24 -0400 Received: by wiaa2 with SMTP id a2so19566212wia.0 for ; Tue, 31 Mar 2015 03:13:23 -0700 (PDT) X-Received: by 10.180.96.197 with SMTP id du5mr4269659wib.68.1427796803441; Tue, 31 Mar 2015 03:13:23 -0700 (PDT) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id ea11sm8304337wic.24.2015.03.31.03.13.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Mar 2015 03:13:22 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Ripard Subject: [PATCH 2/5] clocksource/drivers/sun5i: Switch to request_irq Date: Tue, 31 Mar 2015 12:12:23 +0200 Message-Id: <1427796746-373-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427796746-373-1-git-send-email-daniel.lezcano@linaro.org> References: <551A72B6.7030106@linaro.org> <1427796746-373-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.54 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 Conflicts: drivers/clocksource/timer-sun5i.c --- 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 58597fb..03f04d8 100644 --- a/drivers/clocksource/timer-sun5i.c +++ b/drivers/clocksource/timer-sun5i.c @@ -129,13 +129,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 void __init sun5i_timer_init(struct device_node *node) { struct reset_control *rstc; @@ -181,7 +174,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); }