From patchwork Sun Jul 22 18:02:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 10539361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7E91613BB for ; Sun, 22 Jul 2018 18:04:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 731CA283D9 for ; Sun, 22 Jul 2018 18:04:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63EAC283E7; Sun, 22 Jul 2018 18:04:18 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6350F283D9 for ; Sun, 22 Jul 2018 18:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=cKY5YuSjRgwcruMXsnDRln+IVi/EZbFMPu/BjlWOouk=; b=piu Vory2MklGruJ5lYqQE/Ru0AlxTZ/A4GRPGAqJeeGReWKtEQoff8dlk5+3yO1e63cANAKq4oBmMTRV YkV8qvUoe0U1IPYDn6sOeDGzaa3RVzvWI5r9zH0OXqiW5NRC9iBp8g0rx5C9ANzDciW4hKG2ugt7J iKDXyyylTZ7gcbM39oDBlgvL9oG07UVZYabou5YiX8jw+XMKyuQzG/C+lOJWYC6Zd1V5RVW7Nq449 3t7e2dFVVWUOW4qVlKpqPSVhW8C2W8Xv93MiUWJD6oX7f822ci8OhO1nbYowewhk3yv2faEJH8g3N kXx5zZhTLXQ+cjWIetsPV9bV4WYYw0w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhIiH-0002zt-K5; Sun, 22 Jul 2018 18:04:09 +0000 Received: from botnar.kaiser.cx ([176.28.20.183]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhIiE-0002yx-RL for linux-arm-kernel@lists.infradead.org; Sun, 22 Jul 2018 18:04:08 +0000 Received: from dslb-084-059-250-189.084.059.pools.vodafone-ip.de ([84.59.250.189] helo=martin-debian-1.paytec.ch) by botnar.kaiser.cx with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1fhIgr-0002Uu-9F; Sun, 22 Jul 2018 20:02:41 +0200 From: Martin Kaiser To: Marc Zyngier , Jason Cooper , Thomas Gleixner Subject: [PATCH] irqchip/tango: Set irq handler and data in one go Date: Sun, 22 Jul 2018 20:02:13 +0200 Message-Id: <1532282533-26507-1-git-send-email-martin@kaiser.cx> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_110407_034835_9F11A508 X-CRM114-Status: GOOD ( 10.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Kaiser , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Replace the two separate calls for setting the irq handler and data with a single irq_set_chained_handler_and_data() call. Signed-off-by: Martin Kaiser --- drivers/irqchip/irq-tango.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-tango.c b/drivers/irqchip/irq-tango.c index 0c085303a583..580e2d72b9ba 100644 --- a/drivers/irqchip/irq-tango.c +++ b/drivers/irqchip/irq-tango.c @@ -205,8 +205,7 @@ static int __init tangox_irq_init(void __iomem *base, struct resource *baseres, tangox_irq_domain_init(dom); - irq_set_chained_handler(irq, tangox_irq_handler); - irq_set_handler_data(irq, dom); + irq_set_chained_handler_and_data(irq, tangox_irq_handler, dom); return 0; }