From patchwork Fri Aug 17 12:10:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 10568689 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 CC132109C for ; Fri, 17 Aug 2018 12:12:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B82C92AEFD for ; Fri, 17 Aug 2018 12:12:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA8672B4A4; Fri, 17 Aug 2018 12:12:04 +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,RCVD_IN_DNSWL_NONE 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 AD1422AEFD for ; Fri, 17 Aug 2018 12:12:03 +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:References: In-Reply-To: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:List-Owner; bh=FhmCN2chW6FE9xwtqT6gxZXPPDUoMqBhycaAz166R6w=; b=ZW6JSCjStfBSNXXExGV5QBgA1j mIsv8Qi+9Ryf5zGL1VT2zaiDPjxsGSwUtmZy7eU+U9EbVSx+GIQ9t0EQ2SAHFHmp5VLwCuu1Wf+OZ qDi74wJymoYaqVkpnKI6w0E+ZFnfx6y3GyJYeBwH52yMKSjlOD3wdfe/974n5R5QO+pcGwUgZc+P+ dLMY5obb1HaZyb0d997UkCuNCeg6s2xKturnLNz67jPBjyzC/QsLyBveA0FX3F2Z6FTR9UMYK02Q0 hlfXTlLF/I70kdjsgw0u0dF2e6/VZ2LZuoDtUTzRZkHJNfwNaMsW9nK4n+fenauUhspyzJYGHweHg zRxsM79A==; 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 1fqdbm-0003uQ-ND; Fri, 17 Aug 2018 12:12:02 +0000 Received: from viti.kaiser.cx ([2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fqdbj-0003su-Pn for linux-arm-kernel@lists.infradead.org; Fri, 17 Aug 2018 12:12:01 +0000 Received: from dslb-084-059-008-117.084.059.pools.vodafone-ip.de ([84.59.8.117] helo=martin-debian-1.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.89) (envelope-from ) id 1fqdbP-0007QM-7k; Fri, 17 Aug 2018 14:11:39 +0200 From: Martin Kaiser To: Marc Zyngier Subject: [PATCH resend] irqchip/tango: Set irq handler and data in one go Date: Fri, 17 Aug 2018 14:10:27 +0200 Message-Id: <1534507827-7230-1-git-send-email-martin@kaiser.cx> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1532282533-26507-1-git-send-email-martin@kaiser.cx> References: <1532282533-26507-1-git-send-email-martin@kaiser.cx> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180817_051159_985515_26A6BB13 X-CRM114-Status: GOOD ( 10.96 ) 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: Florian Fainelli , Jason Cooper , Martin Kaiser , linux-kernel@vger.kernel.org, Thomas Gleixner , 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 --- Resending this, it seems this got lost along the way. Not a major change, of course. But should also be simple to review. Thanks & Best regards, Martin 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; }