From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76C68C433E0 for ; Thu, 6 Aug 2020 18:38:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1AA122CAF for ; Thu, 6 Aug 2020 18:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596739095; bh=19UAshGsZFByjxw/aSzh0Z+vb1p8CceYaowS8Z/9iZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=eqgpegZjK1eiJdDGQR0GJ0EhYhCbw5HD8FxhV8DocpmGaLf3GEXMpMMAOMlYFnwO2 qaq9kPbFciLnxWjAtGz5ddavEkZgqMrjcRsw7TpkJIpSTz0bth1ywGkengTLi2bjxr ljqZE94S56eAUhrOUqIotf+IFcftnPXo+psaNhJc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729802AbgHFSiN (ORCPT ); Thu, 6 Aug 2020 14:38:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:58704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729268AbgHFSfW (ORCPT ); Thu, 6 Aug 2020 14:35:22 -0400 Received: from localhost.localdomain (unknown [194.230.155.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DEDA522E03; Thu, 6 Aug 2020 18:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596738243; bh=19UAshGsZFByjxw/aSzh0Z+vb1p8CceYaowS8Z/9iZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nBIXHt6BD7bu9YKm6SGfQefDgMp4yTD7C4X5F+YWz9/xT40rusPWXccz/CjQy4xRR 1nDngaN5OmaCmfryBkNOScYWHyU3HyXefCs2apd46s0WTbblvgak1E8vlQKKZu+rp5 kHpj4c04WnpG+MkflTaJ+/sv3P+5axMKuR8q44Xc= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Krzysztof Kozlowski , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 32/41] ARM: s3c24xx: bast: avoid irq_desc array usage Date: Thu, 6 Aug 2020 20:20:49 +0200 Message-Id: <20200806182059.2431-32-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200806181932.2253-1-krzk@kernel.org> References: <20200806181932.2253-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Once we move to sparse irqs, the irq_desc[] array is no longer accessible, so replace the two uses in bast-irq.c. The first one can use irq_to_desc(), the second one seems completely unneeded as we already have a pointer to the correct descriptor. Signed-off-by: Arnd Bergmann Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-s3c24xx/bast-irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c24xx/bast-irq.c b/arch/arm/mach-s3c24xx/bast-irq.c index a6db5e2c910c..141a35d58dd7 100644 --- a/arch/arm/mach-s3c24xx/bast-irq.c +++ b/arch/arm/mach-s3c24xx/bast-irq.c @@ -62,7 +62,7 @@ bast_pc104_mask(struct irq_data *data) static void bast_pc104_maskack(struct irq_data *data) { - struct irq_desc *desc = irq_desc + BAST_IRQ_ISA; + struct irq_desc *desc = irq_to_desc(BAST_IRQ_ISA); bast_pc104_mask(data); desc->irq_data.chip->irq_ack(&desc->irq_data); @@ -94,8 +94,6 @@ static void bast_irq_pc104_demux(struct irq_desc *desc) if (unlikely(stat == 0)) { /* ack if we get an irq with nothing (ie, startup) */ - - desc = irq_desc + BAST_IRQ_ISA; desc->irq_data.chip->irq_ack(&desc->irq_data); } else { /* handle the IRQ */ -- 2.17.1