ARM: kill off set_irq_flags usage
authorRob Herring <robh@kernel.org>
Mon, 27 Jul 2015 20:55:13 +0000 (15:55 -0500)
committerOlof Johansson <olof@lixom.net>
Tue, 28 Jul 2015 11:58:13 +0000 (13:58 +0200)
set_irq_flags is ARM specific with custom flags which have genirq
equivalents. Convert drivers to use the genirq interfaces directly, so we
can kill off set_irq_flags. The translation of flags is as follows:

IRQF_VALID -> !IRQ_NOREQUEST
IRQF_PROBE -> !IRQ_NOPROBE
IRQF_NOAUTOEN -> IRQ_NOAUTOEN

For IRQs managed by an irqdomain, the irqdomain core code handles clearing
and setting IRQ_NOREQUEST already, so there is no need to do this in
.map() functions and we can simply remove the set_irq_flags calls. Some
users also modify IRQ_NOPROBE and this has been maintained although it
is not clear that is really needed. There appears to be a great deal of
blind copy and paste of this code.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Imre Kaloz <kaloz@openwrt.org>
Acked-by: Krzysztof Halasa <khalasa@piap.pl>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Roland Stigge <stigge@antcom.de>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Daniel Mack <daniel@zonque.org>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Simtec Linux Team <linux@simtec.co.uk>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-omap@vger.kernel.org
Cc: linux-samsung-soc@vger.kernel.org
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
35 files changed:
arch/arm/common/it8152.c
arch/arm/common/locomo.c
arch/arm/common/sa1111.c
arch/arm/mach-davinci/cp_intc.c
arch/arm/mach-dove/irq.c
arch/arm/mach-ebsa110/core.c
arch/arm/mach-footbridge/common.c
arch/arm/mach-footbridge/isa-irq.c
arch/arm/mach-gemini/gpio.c
arch/arm/mach-gemini/irq.c
arch/arm/mach-imx/3ds_debugboard.c
arch/arm/mach-imx/mach-mx31ads.c
arch/arm/mach-iop13xx/irq.c
arch/arm/mach-iop32x/irq.c
arch/arm/mach-iop33x/irq.c
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-ks8695/irq.c
arch/arm/mach-lpc32xx/irq.c
arch/arm/mach-netx/generic.c
arch/arm/mach-omap1/fpga.c
arch/arm/mach-omap1/irq.c
arch/arm/mach-pxa/balloon3.c
arch/arm/mach-pxa/irq.c
arch/arm/mach-pxa/lpd270.c
arch/arm/mach-pxa/pcm990-baseboard.c
arch/arm/mach-pxa/pxa3xx.c
arch/arm/mach-pxa/viper.c
arch/arm/mach-pxa/zeus.c
arch/arm/mach-rpc/ecard.c
arch/arm/mach-rpc/irq.c
arch/arm/mach-s3c24xx/bast-irq.c
arch/arm/mach-s3c64xx/common.c
arch/arm/mach-sa1100/neponset.c
arch/arm/mach-w90x900/irq.c
drivers/irqchip/irq-sa11x0.c

index 5114b68e99d5215bd7db38daa6b57a2e4b305f4a..96dabcb6c62107f5675fde3c78dd2f86b4588cf2 100644 (file)
@@ -91,7 +91,7 @@ void it8152_init_irq(void)
        for (irq = IT8152_IRQ(0); irq <= IT8152_LAST_IRQ; irq++) {
                irq_set_chip_and_handler(irq, &it8152_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 }
 
index b55c3625d7ee2befcbbfff8caa6ca0ed078f92ea..339fc414daada0b1827338fe619b2a96f76717e7 100644 (file)
@@ -205,7 +205,7 @@ static void locomo_setup_irq(struct locomo *lchip)
        for ( ; irq <= lchip->irq_base + 3; irq++) {
                irq_set_chip_and_handler(irq, &locomo_chip, handle_level_irq);
                irq_set_chip_data(irq, lchip);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 }
 
index 93ee70dbbdd390610520f497e5ce9d27830d1efb..680374de06a9198f839e15466f751ddb9315fc51 100644 (file)
@@ -486,7 +486,7 @@ static int sa1111_setup_irq(struct sa1111 *sachip, unsigned irq_base)
                irq_set_chip_and_handler(irq, &sa1111_low_chip,
                                         handle_edge_irq);
                irq_set_chip_data(irq, sachip);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        for (i = AUDXMTDMADONEA; i <= IRQ_S1_BVD1_STSCHG; i++) {
@@ -494,7 +494,7 @@ static int sa1111_setup_irq(struct sa1111 *sachip, unsigned irq_base)
                irq_set_chip_and_handler(irq, &sa1111_high_chip,
                                         handle_edge_irq);
                irq_set_chip_data(irq, sachip);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        /*
index 006dae8dfe443b3474ae6df73b5c97cf93502f33..bf12ce64407a0dd8a5316136b8d6398d939ad0d4 100644 (file)
@@ -112,7 +112,7 @@ static int cp_intc_host_map(struct irq_domain *h, unsigned int virq,
        pr_debug("cp_intc_host_map(%d, 0x%lx)\n", virq, hw);
 
        irq_set_chip(virq, &cp_intc_irq_chip);
-       set_irq_flags(virq, IRQF_VALID | IRQF_PROBE);
+       irq_set_probe(virq);
        irq_set_handler(virq, handle_edge_irq);
        return 0;
 }
index df0223f76fa92d8752f31d2ccb1dd40e18d11a4f..ea7892e72242ae1d232f722bc7e47420c6c97dd7 100644 (file)
@@ -172,7 +172,7 @@ void __init dove_init_irq(void)
        for (i = IRQ_DOVE_PMU_START; i < NR_IRQS; i++) {
                irq_set_chip_and_handler(i, &pmu_irq_chip, handle_level_irq);
                irq_set_status_flags(i, IRQ_LEVEL);
-               set_irq_flags(i, IRQF_VALID);
+               irq_clear_status_flags(i, IRQ_NOREQUEST);
        }
        irq_set_chained_handler(IRQ_DOVE_PMU, pmu_irq_handler);
 }
index 8254e716b095b8516f657881b24bcd095d511d9c..688e5fed49a71fbada44d29eca5b92f2468be008 100644 (file)
@@ -65,7 +65,7 @@ static void __init ebsa110_init_irq(void)
        for (irq = 0; irq < NR_IRQS; irq++) {
                irq_set_chip_and_handler(irq, &ebsa110_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 }
 
index 9e8220e38398f87d368bcaa97dec961b846b22f3..0f0c9e040fcc87e33286686fccf4867680e12542 100644 (file)
@@ -106,7 +106,7 @@ static void __init __fb_init_irq(void)
 
        for (irq = _DC21285_IRQ(0); irq < _DC21285_IRQ(20); irq++) {
                irq_set_chip_and_handler(irq, &fb_chip, handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 }
 
index c3a0abbc9049a67db7a539c2540572d3033ccef9..fcd79bc3a3e1d86639fd8b3d859133017e2deb99 100644 (file)
@@ -153,13 +153,13 @@ void __init isa_init_irq(unsigned int host_irq)
                for (irq = _ISA_IRQ(0); irq < _ISA_IRQ(8); irq++) {
                        irq_set_chip_and_handler(irq, &isa_lo_chip,
                                                 handle_level_irq);
-                       set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+                       irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
                }
 
                for (irq = _ISA_IRQ(8); irq < _ISA_IRQ(16); irq++) {
                        irq_set_chip_and_handler(irq, &isa_hi_chip,
                                                 handle_level_irq);
-                       set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+                       irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
                }
 
                request_resource(&ioport_resource, &pic1_resource);
@@ -175,8 +175,8 @@ void __init isa_init_irq(unsigned int host_irq)
                 * resistor on this line.
                 */
                if (machine_is_netwinder())
-                       set_irq_flags(_ISA_IRQ(11), IRQF_VALID |
-                                     IRQF_PROBE | IRQF_NOAUTOEN);
+                       irq_modify_status(_ISA_IRQ(11),
+                               IRQ_NOREQUEST | IRQ_NOPROBE, IRQ_NOAUTOEN);
        }
 }
 
index 3292f2e6ed6f3fc9fd306904eaeb4551e1cd0c2e..220333ed741db064e066d79d6ea57503b694ac4e 100644 (file)
@@ -220,7 +220,7 @@ void __init gemini_gpio_init(void)
                     j < GPIO_IRQ_BASE + (i + 1) * 32; j++) {
                        irq_set_chip_and_handler(j, &gpio_irq_chip,
                                                 handle_edge_irq);
-                       set_irq_flags(j, IRQF_VALID);
+                       irq_clear_status_flags(j, IRQ_NOREQUEST);
                }
 
                irq_set_chained_handler_and_data(IRQ_GPIO(i), gpio_irq_handler,
index 44f50dcb616d12a4de2b586d121c213509816dcf..d929b3ff18fdf3da2b605f0617c4898a3f9358e8 100644 (file)
@@ -92,7 +92,7 @@ void __init gemini_init_irq(void)
                } else {                        
                        irq_set_handler(i, handle_level_irq);
                }
-               set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(i, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        /* Disable all interrupts */
index 1343773529665e876db7bf08e34b529bb3e80a81..45903be6e7b3d7efd01656f21d24ea94cdaf74bf 100644 (file)
@@ -195,7 +195,7 @@ int __init mxc_expio_init(u32 base, u32 intr_gpio)
 
        for (i = irq_base; i < irq_base + MXC_MAX_EXP_IO_LINES; i++) {
                irq_set_chip_and_handler(i, &expio_irq_chip, handle_level_irq);
-               set_irq_flags(i, IRQF_VALID);
+               irq_clear_status_flags(i, IRQ_NOREQUEST);
        }
        irq_set_irq_type(p_irq, IRQF_TRIGGER_LOW);
        irq_set_chained_handler(p_irq, mxc_expio_irq_handler);
index d08c37c696f63271062872a0f79c47b85a555171..2c0853560bd2f6777144005e2ff5a83d975fc0f3 100644 (file)
@@ -238,7 +238,7 @@ static void __init mx31ads_init_expio(void)
 
        for (i = irq_base; i < irq_base + MXC_MAX_EXP_IO_LINES; i++) {
                irq_set_chip_and_handler(i, &expio_irq_chip, handle_level_irq);
-               set_irq_flags(i, IRQF_VALID);
+               irq_clear_status_flags(i, IRQ_NOREQUEST);
        }
        irq = gpio_to_irq(IOMUX_TO_GPIO(MX31_PIN_GPIO1_4));
        irq_set_irq_type(irq, IRQ_TYPE_LEVEL_HIGH);
index bc739701c3014861fce43f525f0273e7dd8502e9..623d85a4af2dd2ab180bf531af2374a0ecd88437 100644 (file)
@@ -233,7 +233,7 @@ void __init iop13xx_init_irq(void)
                        irq_set_chip(i, &iop13xx_irqchip4);
 
                irq_set_handler(i, handle_level_irq);
-               set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(i, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        iop13xx_msi_init();
index d7ee2789d890a19b1db52f3015db818188de4c78..2d1f69a68cbc73af505755a226c1de2a25857a48 100644 (file)
@@ -69,6 +69,6 @@ void __init iop32x_init_irq(void)
 
        for (i = 0; i < NR_IRQS; i++) {
                irq_set_chip_and_handler(i, &ext_chip, handle_level_irq);
-               set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(i, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 }
index f7f5d3e451c7a8cad27dbd4000c96cd085a36b60..c99ec8d0d2854b7aa6dc33a74682fdf4f5f28536 100644 (file)
@@ -113,6 +113,6 @@ void __init iop33x_init_irq(void)
                irq_set_chip_and_handler(i,
                                         (i < 32) ? &iop33x_irqchip1 : &iop33x_irqchip2,
                                         handle_level_irq);
-               set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(i, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 }
index 70773b948e7e1239a382c1cf19d7d35d1b2e5050..1cb6f2f028805fd28702ef794737dd92ce0dcab8 100644 (file)
@@ -296,7 +296,7 @@ void __init ixp4xx_init_irq(void)
        for(i = 0; i < NR_IRQS; i++) {
                irq_set_chip_and_handler(i, &ixp4xx_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(i, IRQF_VALID);
+               irq_clear_status_flags(i, IRQ_NOREQUEST);
        }
 }
 
index 76802aac0f459fe3867fbecbbc3eb9aab84bd9c3..31439f2ee21ebdc5e862b7fd9a5755f556e81116 100644 (file)
@@ -172,6 +172,6 @@ void __init ks8695_init_irq(void)
                                                         handle_edge_irq);
                }
 
-               set_irq_flags(irq, IRQF_VALID);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST);
        }
 }
index d4f7dc87042b28c565ff47721492d4876f655447..4ffe333ad331d1d2448de6938680af1ccb9e0c27 100644 (file)
@@ -434,7 +434,7 @@ void __init lpc32xx_init_irq(void)
        for (i = 0; i < NR_IRQS; i++) {
                irq_set_chip_and_handler(i, &lpc32xx_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(i, IRQF_VALID);
+               irq_clear_status_flags(i, IRQ_NOREQUEST);
        }
 
        /* Set default mappings */
index db25b0cef3a73dc88e841bda0416960c8e409e75..6373e2bff203e609bdc6eff4b55bdd014f11f436 100644 (file)
@@ -174,7 +174,7 @@ void __init netx_init_irq(void)
        for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) {
                irq_set_chip_and_handler(irq, &netx_hif_chip,
                                         handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST);
        }
 
        writel(NETX_DPMAS_INT_EN_GLB_EN, NETX_DPMAS_INT_EN);
index 3c0e42219200f51346584a5545b3e29a92170ec8..dfec671b1639427ae65f8f57773bbf56ba301803 100644 (file)
@@ -169,7 +169,7 @@ void omap1510_fpga_init_irq(void)
                }
 
                irq_set_handler(i, handle_edge_irq);
-               set_irq_flags(i, IRQF_VALID);
+               irq_clear_status_flags(i, IRQ_NOREQUEST);
        }
 
        /*
index f4d346fda9da8c44bc201f328df4293420168fab..b11edc8a46f0ec0c549969987ebfaec803ae11ac 100644 (file)
@@ -262,7 +262,7 @@ void __init omap1_init_irq(void)
 
                        irq_trigger = irq_banks[i].trigger_map >> IRQ_BIT(j);
                        omap_irq_set_cfg(j, 0, 0, irq_trigger);
-                       set_irq_flags(j, IRQF_VALID);
+                       irq_clear_status_flags(j, IRQ_NOREQUEST);
                }
                omap_alloc_gc(irq_banks[i].va, irq_base + i * 32, 32);
        }
index d897292712ebe722df54463a3db9a0bb04d36dc1..09b9a36049c73dfa6abe8d914f324f8595cb5137 100644 (file)
@@ -528,7 +528,7 @@ static void __init balloon3_init_irq(void)
        for (irq = BALLOON3_IRQ(0); irq <= BALLOON3_IRQ(7); irq++) {
                irq_set_chip_and_handler(irq, &balloon3_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        irq_set_chained_handler(BALLOON3_AUX_NIRQ, balloon3_irq_handler);
index 98608c5575cb7cdc31d83386334db2ff7b523a25..9c10248fadccc2d03ef3b3bcbddbe0b43347f158 100644 (file)
@@ -133,7 +133,6 @@ static int pxa_irq_map(struct irq_domain *h, unsigned int virq,
        irq_set_chip_and_handler(virq, &pxa_internal_irq_chip,
                                 handle_level_irq);
        irq_set_chip_data(virq, base);
-       set_irq_flags(virq, IRQF_VALID);
 
        return 0;
 }
index eaee2c20b18956863557e0aba66e24f09e3f5070..2670fb0c6a21a061b5475057e98bd6ea7cafff9d 100644 (file)
@@ -151,7 +151,7 @@ static void __init lpd270_init_irq(void)
        for (irq = LPD270_IRQ(2); irq <= LPD270_IRQ(4); irq++) {
                irq_set_chip_and_handler(irq, &lpd270_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
        irq_set_chained_handler(PXA_GPIO_TO_IRQ(0), lpd270_irq_handler);
        irq_set_irq_type(PXA_GPIO_TO_IRQ(0), IRQ_TYPE_EDGE_FALLING);
index 2897da2a5df6e69b7d6d330f2685eeedc4e09733..86e01bfc65b5f43f85152ad8bb5d89ac27857214 100644 (file)
@@ -311,7 +311,7 @@ static void __init pcm990_init_irq(void)
        for (irq = PCM027_IRQ(0); irq <= PCM027_IRQ(3); irq++) {
                irq_set_chip_and_handler(irq, &pcm990_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        /* disable all Interrupts */
index bd4cbef15ccf2147a7cce6aa1d51f185cfd57f8f..e1362c0eeafc150bc1e701ee5b69c26743b7e06c 100644 (file)
@@ -325,7 +325,7 @@ static void __init pxa_init_ext_wakeup_irq(int (*fn)(struct irq_data *,
        for (irq = IRQ_WAKEUP0; irq <= IRQ_WAKEUP1; irq++) {
                irq_set_chip_and_handler(irq, &pxa_ext_wakeup_chip,
                                         handle_edge_irq);
-               set_irq_flags(irq, IRQF_VALID);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST);
        }
 
        pxa_ext_wakeup_chip.irq_set_wake = fn;
index de3b08073fe7604ececdd1e5dc259e0244a53201..dae3de8ce58c651ffede76e1b1f704aff6d22318 100644 (file)
@@ -313,7 +313,7 @@ static void __init viper_init_irq(void)
                isa_irq = viper_bit_to_irq(level);
                irq_set_chip_and_handler(isa_irq, &viper_irq_chip,
                                         handle_edge_irq);
-               set_irq_flags(isa_irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(isa_irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        irq_set_chained_handler(gpio_to_irq(VIPER_CPLD_GPIO),
index ac2ae5c71ab45b7428440ee8925b121533ba9509..48dd5bd64d774273a00093c677c6facb65dc492b 100644 (file)
@@ -151,7 +151,7 @@ static void __init zeus_init_irq(void)
                isa_irq = zeus_bit_to_irq(level);
                irq_set_chip_and_handler(isa_irq, &zeus_irq_chip,
                                         handle_edge_irq);
-               set_irq_flags(isa_irq, IRQF_VALID | IRQF_PROBE);
+               irq_clear_status_flags(isa_irq, IRQ_NOREQUEST | IRQ_NOPROBE);
        }
 
        irq_set_irq_type(gpio_to_irq(ZEUS_ISA_GPIO), IRQ_TYPE_EDGE_RISING);
index fcb1d59f7aeccdf9cd3ebc641630e4f4b4be504f..f726d4c4e6dd8caf6ab5966a8bd63a02183e5057 100644 (file)
@@ -946,7 +946,7 @@ static int __init ecard_probe(int slot, unsigned irq, card_type_t type)
                irq_set_chip_and_handler(ec->irq, &ecard_chip,
                                         handle_level_irq);
                irq_set_chip_data(ec->irq, ec);
-               set_irq_flags(ec->irq, IRQF_VALID);
+               irq_clear_status_flags(ec->irq, IRQ_NOREQUEST);
        }
 
 #ifdef CONFIG_ARCH_RPC
index 3e4fa849c64dbc7de6c3a441124396c77c39f58d..66502e6207fea86a8289d8697cf2db6c8cb6363c 100644 (file)
@@ -117,7 +117,7 @@ extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end;
 
 void __init rpc_init_irq(void)
 {
-       unsigned int irq, flags;
+       unsigned int irq, clr, set = 0;
 
        iomd_writeb(0, IOMD_IRQMASKA);
        iomd_writeb(0, IOMD_IRQMASKB);
@@ -128,37 +128,37 @@ void __init rpc_init_irq(void)
                &rpc_default_fiq_end - &rpc_default_fiq_start);
 
        for (irq = 0; irq < NR_IRQS; irq++) {
-               flags = IRQF_VALID;
+               clr = IRQ_NOREQUEST;
 
                if (irq <= 6 || (irq >= 9 && irq <= 15))
-                       flags |= IRQF_PROBE;
+                       clr |= IRQ_NOPROBE;
 
                if (irq == 21 || (irq >= 16 && irq <= 19) ||
                    irq == IRQ_KEYBOARDTX)
-                       flags |= IRQF_NOAUTOEN;
+                       set |= IRQ_NOAUTOEN;
 
                switch (irq) {
                case 0 ... 7:
                        irq_set_chip_and_handler(irq, &iomd_a_chip,
                                                 handle_level_irq);
-                       set_irq_flags(irq, flags);
+                       irq_modify_status(irq, clr, set);
                        break;
 
                case 8 ... 15:
                        irq_set_chip_and_handler(irq, &iomd_b_chip,
                                                 handle_level_irq);
-                       set_irq_flags(irq, flags);
+                       irq_modify_status(irq, clr, set);
                        break;
 
                case 16 ... 21:
                        irq_set_chip_and_handler(irq, &iomd_dma_chip,
                                                 handle_level_irq);
-                       set_irq_flags(irq, flags);
+                       irq_modify_status(irq, clr, set);
                        break;
 
                case 64 ... 71:
                        irq_set_chip(irq, &iomd_fiq_chip);
-                       set_irq_flags(irq, IRQF_VALID);
+                       irq_modify_status(irq, clr, set);
                        break;
                }
        }
index cb1b791954dea7d9a31eb202af4416353be04737..ced1ab86ac83a7037edd2727ba54234c8b90867b 100644 (file)
@@ -147,7 +147,7 @@ static __init int bast_irq_init(void)
 
                        irq_set_chip_and_handler(irqno, &bast_pc104_chip,
                                                 handle_level_irq);
-                       set_irq_flags(irqno, IRQF_VALID);
+                       irq_clear_status_flags(irqno, IRQ_NOREQUEST);
                }
        }
 
index 16547f2641a32d343bb8ea44adfdf106ad781f49..06ba9438c262a47ea007a65f1c648b6da82c3573 100644 (file)
@@ -420,7 +420,7 @@ static int __init s3c64xx_init_irq_eint(void)
        for (irq = IRQ_EINT(0); irq <= IRQ_EINT(27); irq++) {
                irq_set_chip_and_handler(irq, &s3c_irq_eint, handle_level_irq);
                irq_set_chip_data(irq, (void *)eint_irq_to_bit(irq));
-               set_irq_flags(irq, IRQF_VALID);
+               irq_clear_status_flags(irq, IRQ_NOREQUEST);
        }
 
        irq_set_chained_handler(IRQ_EINT0_3, s3c_irq_demux_eint0_3);
index 99d9a3b1bf34bedddb62e51a220d93088bab3542..6d237b4f7a8ef226acb57bb196f066183a754fb6 100644 (file)
@@ -320,10 +320,10 @@ static int neponset_probe(struct platform_device *dev)
 
        irq_set_chip_and_handler(d->irq_base + NEP_IRQ_SMC91X, &nochip,
                handle_simple_irq);
-       set_irq_flags(d->irq_base + NEP_IRQ_SMC91X, IRQF_VALID | IRQF_PROBE);
+       irq_clear_status_flags(d->irq_base + NEP_IRQ_SMC91X, IRQ_NOREQUEST | IRQ_NOPROBE);
        irq_set_chip_and_handler(d->irq_base + NEP_IRQ_USAR, &nochip,
                handle_simple_irq);
-       set_irq_flags(d->irq_base + NEP_IRQ_USAR, IRQF_VALID | IRQF_PROBE);
+       irq_clear_status_flags(d->irq_base + NEP_IRQ_USAR, IRQ_NOREQUEST | IRQ_NOPROBE);
        irq_set_chip(d->irq_base + NEP_IRQ_SA1111, &nochip);
 
        irq_set_irq_type(irq, IRQ_TYPE_EDGE_RISING);
index d66d43ae8df58970782505746598d2ca0680fdfb..491b317daffa1ee6fbbb18c9fb467fdcaf3ce61e 100644 (file)
@@ -211,6 +211,6 @@ void __init nuc900_init_irq(void)
        for (irqno = IRQ_WDT; irqno <= IRQ_ADC; irqno++) {
                irq_set_chip_and_handler(irqno, &nuc900_irq_chip,
                                         handle_level_irq);
-               set_irq_flags(irqno, IRQF_VALID);
+               irq_clear_status_flags(irqno, IRQ_NOREQUEST);
        }
 }
index 46df2875dc1c40f2402e82706d4c79dcf1dccf16..61bb28d7b19b9a11776b6563293a6e2fd281aa0f 100644 (file)
@@ -70,7 +70,6 @@ static int sa1100_normal_irqdomain_map(struct irq_domain *d,
 {
        irq_set_chip_and_handler(irq, &sa1100_normal_chip,
                                 handle_level_irq);
-       set_irq_flags(irq, IRQF_VALID);
 
        return 0;
 }