Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1182355

[PATCH v2 12/13] ARM: remove ununsed set_irq_flags

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject [PATCH v2 12/13] ARM: remove ununsed set_irq_flags
Date Sun, 12 Jul 2015 16:30:01 +0200
Message-ID <pLqqt-Rf-1@gated-at.bofh.it> (permalink)
References <pLqqt-Rf-3@gated-at.bofh.it>
X-Original-To linux-arm-kernel@lists.infradead.org, Russell King <linux@arm.linux.org.uk>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=sDb6unTOPIsYi3d/cjccMCGucUSI8TMGhDMr9Vc/lwk=; b=U4DU9W9t4giHgCA1hsZlZGcU2wocXkNhJWDASYzOOIo9PKBlY3oyYvwPZGrfbUEIaK ljlpLik3fECo3rjFyT9T6SNyuLGylDYUiaMWMYo8SIHjgAiFVJGheSUtKb1SddKSrnQo HABCPE0yU012L1zVU1mYK607xHx1gdGA9SBrx3CEQd9skyEOHZ/K9hkthOzIxG0ZpGq4 MisJzGoQD6VrijKjhQV8z3Z3/pdXlGVz1nVp4cHXKDGsT1PQLttOkUWEhZ4RKYRtmcqb 4Kz/BMk/zc9YyoBETcCOYu+3aUVI+nFBGe/tOAyy6VX0lpt70+k+HwVP/AXYDYR7K40J /pBw==
X-Received by 10.182.79.197 with SMTP id l5mr26524596obx.59.1436711230147; Sun, 12 Jul 2015 07:27:10 -0700 (PDT)
X-Mailer git-send-email 2.1.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 68
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, arm@kernel.org
X-Original-Date Sun, 12 Jul 2015 09:26:50 -0500
X-Original-Message-ID <1436711211-18223-13-git-send-email-robh@kernel.org>
X-Original-References <1436711211-18223-1-git-send-email-robh@kernel.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1182355

Show key headers only | View raw


Now that all users of set_irq_flags and custom flags are converted to
genirq functions, the ARM specific set_irq_flags can be removed.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Tested-by: Kevin Hilman <khilman@linaro.org>
---
 arch/arm/include/asm/hw_irq.h |  6 ------
 arch/arm/kernel/irq.c         | 20 --------------------
 2 files changed, 26 deletions(-)

diff --git a/arch/arm/include/asm/hw_irq.h b/arch/arm/include/asm/hw_irq.h
index af79da4..9beb929 100644
--- a/arch/arm/include/asm/hw_irq.h
+++ b/arch/arm/include/asm/hw_irq.h
@@ -11,12 +11,6 @@ static inline void ack_bad_irq(int irq)
 	pr_crit("unexpected IRQ trap at vector %02x\n", irq);
 }
 
-void set_irq_flags(unsigned int irq, unsigned int flags);
-
-#define IRQF_VALID	(1 << 0)
-#define IRQF_PROBE	(1 << 1)
-#define IRQF_NOAUTOEN	(1 << 2)
-
 #define ARCH_IRQ_INIT_FLAGS	(IRQ_NOREQUEST | IRQ_NOPROBE)
 
 #endif
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index 350f188..4072266 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -78,26 +78,6 @@ asm_do_IRQ(unsigned int irq, struct pt_regs *regs)
 	handle_IRQ(irq, regs);
 }
 
-void set_irq_flags(unsigned int irq, unsigned int iflags)
-{
-	unsigned long clr = 0, set = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN;
-
-	if (irq >= nr_irqs) {
-		pr_err("Trying to set irq flags for IRQ%d\n", irq);
-		return;
-	}
-
-	if (iflags & IRQF_VALID)
-		clr |= IRQ_NOREQUEST;
-	if (iflags & IRQF_PROBE)
-		clr |= IRQ_NOPROBE;
-	if (!(iflags & IRQF_NOAUTOEN))
-		clr |= IRQ_NOAUTOEN;
-	/* Order is clear bits in "clr" then set bits in "set" */
-	irq_modify_status(irq, clr, set & ~clr);
-}
-EXPORT_SYMBOL_GPL(set_irq_flags);
-
 void __init init_IRQ(void)
 {
 	int ret;
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 12/13] ARM: remove ununsed set_irq_flags Rob Herring <robh@kernel.org> - 2015-07-12 16:30 +0200

csiph-web