arm: Fold irq_set_chip/irq_set_handler
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2011 12:35:09 +0000 (13:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Mar 2011 12:47:58 +0000 (14:47 +0200)
Use irq_set_chip_and_handler() instead. Converted with coccinelle.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
84 files changed:
arch/arm/common/gic.c
arch/arm/common/it8152.c
arch/arm/common/locomo.c
arch/arm/common/sa1111.c
arch/arm/common/vic.c
arch/arm/kernel/ecard.c
arch/arm/mach-at91/gpio.c
arch/arm/mach-at91/irq.c
arch/arm/mach-clps711x/irq.c
arch/arm/mach-dove/irq.c
arch/arm/mach-ebsa110/core.c
arch/arm/mach-ep93xx/gpio.c
arch/arm/mach-exynos4/irq-combiner.c
arch/arm/mach-exynos4/irq-eint.c
arch/arm/mach-footbridge/common.c
arch/arm/mach-footbridge/isa-irq.c
arch/arm/mach-gemini/gpio.c
arch/arm/mach-h720x/common.c
arch/arm/mach-h720x/cpu-h7202.c
arch/arm/mach-iop32x/irq.c
arch/arm/mach-iop33x/irq.c
arch/arm/mach-ixp2000/core.c
arch/arm/mach-ixp2000/ixdp2x00.c
arch/arm/mach-ixp2000/ixdp2x01.c
arch/arm/mach-ixp23xx/core.c
arch/arm/mach-ixp23xx/ixdp2351.c
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-ks8695/irq.c
arch/arm/mach-lpc32xx/irq.c
arch/arm/mach-mmp/irq-pxa168.c
arch/arm/mach-msm/board-trout-gpio.c
arch/arm/mach-msm/gpio-v2.c
arch/arm/mach-msm/gpio.c
arch/arm/mach-msm/irq-vic.c
arch/arm/mach-msm/irq.c
arch/arm/mach-msm/sirc.c
arch/arm/mach-mx3/mach-mx31ads.c
arch/arm/mach-mxs/gpio.c
arch/arm/mach-mxs/icoll.c
arch/arm/mach-netx/generic.c
arch/arm/mach-ns9xxx/board-a9m9750dev.c
arch/arm/mach-ns9xxx/irq.c
arch/arm/mach-nuc93x/irq.c
arch/arm/mach-omap1/irq.c
arch/arm/mach-omap2/irq.c
arch/arm/mach-pxa/balloon3.c
arch/arm/mach-pxa/irq.c
arch/arm/mach-pxa/lpd270.c
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/mainstone.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/irq.c
arch/arm/mach-s3c2410/bast-irq.c
arch/arm/mach-s3c2412/irq.c
arch/arm/mach-s3c2416/irq.c
arch/arm/mach-s3c2440/irq.c
arch/arm/mach-s3c2440/s3c244x-irq.c
arch/arm/mach-s3c2443/irq.c
arch/arm/mach-s3c64xx/irq-eint.c
arch/arm/mach-sa1100/irq.c
arch/arm/mach-shark/irq.c
arch/arm/mach-tegra/gpio.c
arch/arm/mach-tegra/irq.c
arch/arm/mach-ux500/modem-irq-db5500.c
arch/arm/mach-vt8500/irq.c
arch/arm/mach-w90x900/irq.c
arch/arm/plat-mxc/3ds_debugboard.c
arch/arm/plat-mxc/avic.c
arch/arm/plat-mxc/gpio.c
arch/arm/plat-mxc/tzic.c
arch/arm/plat-nomadik/gpio.c
arch/arm/plat-orion/gpio.c
arch/arm/plat-orion/irq.c
arch/arm/plat-pxa/gpio.c
arch/arm/plat-s3c24xx/irq.c
arch/arm/plat-s5p/irq-eint.c
arch/arm/plat-samsung/irq-uart.c
arch/arm/plat-spear/shirq.c
arch/arm/plat-stmp3xxx/irq.c
arch/arm/plat-stmp3xxx/pinmux.c
arch/arm/plat-versatile/fpga-irq.c

index 630d46b5ab828b056a2f8b75af0438093dee0c3a..f70ec7dadebbae0b4bcd098fc4c824ff4b0c3eef 100644 (file)
@@ -319,8 +319,7 @@ static void __init gic_dist_init(struct gic_chip_data *gic,
         * Setup the Linux IRQ subsystem.
         */
        for (i = irq_start; i < irq_limit; i++) {
-               irq_set_chip(i, &gic_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &gic_chip, handle_level_irq);
                irq_set_chip_data(i, gic);
                set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
        }
index c815d00eb3494e8a89d859037e4e120930df25eb..7a21927c52e184024b71fa48bdfbb380d8b55f55 100644 (file)
@@ -88,8 +88,8 @@ void it8152_init_irq(void)
        __raw_writel((0), IT8152_INTC_LDCNIRR);
 
        for (irq = IT8152_IRQ(0); irq <= IT8152_LAST_IRQ; irq++) {
-               irq_set_chip(irq, &it8152_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &it8152_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 }
index 54d91f8607e79507250bead0d4f6c7e20b02e12f..b55c3625d7ee2befcbbfff8caa6ca0ed078f92ea 100644 (file)
@@ -203,8 +203,7 @@ static void locomo_setup_irq(struct locomo *lchip)
 
        /* Install handlers for IRQ_LOCOMO_* */
        for ( ; irq <= lchip->irq_base + 3; irq++) {
-               irq_set_chip(irq, &locomo_chip);
-               irq_set_handler(irq, handle_level_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);
        }
index f098f5c9fa3e0bc0bb80f8eaefafe05e422e432c..a12b33c0dc4291a7b35d38552603ef7a51751580 100644 (file)
@@ -472,15 +472,15 @@ static void sa1111_setup_irq(struct sa1111 *sachip)
        sa1111_writel(~0, irqbase + SA1111_INTSTATCLR1);
 
        for (irq = IRQ_GPAIN0; irq <= SSPROR; irq++) {
-               irq_set_chip(irq, &sa1111_low_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               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);
        }
 
        for (irq = AUDXMTDMADONEA; irq <= IRQ_S1_BVD1_STSCHG; irq++) {
-               irq_set_chip(irq, &sa1111_high_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               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);
        }
index e282fd1a436aa54c8a5f8ca381a059217202af9e..113085a77123d95b9cad64a882fff297c3f98dfe 100644 (file)
@@ -305,8 +305,8 @@ static void __init vic_set_irq_sources(void __iomem *base,
                if (vic_sources & (1 << i)) {
                        unsigned int irq = irq_start + i;
 
-                       irq_set_chip(irq, &vic_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &vic_chip,
+                                                handle_level_irq);
                        irq_set_chip_data(irq, base);
                        set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
                }
index a9690f1c28e2efac9b6d3bfc0b33ee0e0147cbf9..d16500110ee99526655dcf409455ea0b8e32587b 100644 (file)
@@ -1043,8 +1043,8 @@ ecard_probe(int slot, card_type_t type)
         */
        if (slot < 8) {
                ec->irq = 32 + slot;
-               irq_set_chip(ec->irq, &ecard_chip);
-               irq_set_handler(ec->irq, handle_level_irq);
+               irq_set_chip_and_handler(ec->irq, &ecard_chip,
+                                        handle_level_irq);
                set_irq_flags(ec->irq, IRQF_VALID);
        }
 
index 8512b796e6531b9da53c6493e98da01892e84ddf..4615528205c8329522b360b3b95e4fee4e89279c 100644 (file)
@@ -511,8 +511,8 @@ void __init at91_gpio_irq_setup(void)
                         * Can use the "simple" and not "edge" handler since it's
                         * shorter, and the AIC handles interrupts sanely.
                         */
-                       irq_set_chip(pin, &gpio_irqchip);
-                       irq_set_handler(pin, handle_simple_irq);
+                       irq_set_chip_and_handler(pin, &gpio_irqchip,
+                                                handle_simple_irq);
                        set_irq_flags(pin, IRQF_VALID);
                }
 
index 566cec1d90734836031c8cd7b454affb8a1fa150..9665265ec757b6c50372e45649506f1590ab01db 100644 (file)
@@ -143,8 +143,7 @@ void __init at91_aic_init(unsigned int priority[NR_AIC_IRQS])
                /* Active Low interrupt, with the specified priority */
                at91_sys_write(AT91_AIC_SMR(i), AT91_AIC_SRCTYPE_LOW | priority[i]);
 
-               irq_set_chip(i, &at91_aic_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &at91_aic_chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
 
                /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */
index 5c5ec01d8972e5f0ab2f2fdbdd179391a4e406a0..c2eceee645e3ecac1b2d66fd94fd1b26a683b3e2 100644 (file)
@@ -112,13 +112,13 @@ void __init clps711x_init_irq(void)
 
        for (i = 0; i < NR_IRQS; i++) {
                if (INT1_IRQS & (1 << i)) {
-                       irq_set_handler(i, handle_level_irq);
-                       irq_set_chip(i, &int1_chip);
+                       irq_set_chip_and_handler(i, &int1_chip,
+                                                handle_level_irq);
                        set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
                }
                if (INT2_IRQS & (1 << i)) {
-                       irq_set_handler(i, handle_level_irq);
-                       irq_set_chip(i, &int2_chip);
+                       irq_set_chip_and_handler(i, &int2_chip,
+                                                handle_level_irq);
                        set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
                }                       
        }
index f038a19f4c6ec6526a1ef9407373d8ad2470a1da..f07fd16e0c9b010243f6df4765743633797ad472 100644 (file)
@@ -121,8 +121,7 @@ void __init dove_init_irq(void)
        writel(0, PMU_INTERRUPT_CAUSE);
 
        for (i = IRQ_DOVE_PMU_START; i < NR_IRQS; i++) {
-               irq_set_chip(i, &pmu_irq_chip);
-               irq_set_handler(i, handle_level_irq);
+               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);
        }
index caf6cbac33e0866abcf077d29ec83bcd4e35deb6..087bc771ac23dfb770baf717e8487dbece2b5cce 100644 (file)
@@ -66,8 +66,8 @@ static void __init ebsa110_init_irq(void)
        local_irq_restore(flags);
 
        for (irq = 0; irq < NR_IRQS; irq++) {
-               irq_set_chip(irq, &ebsa110_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &ebsa110_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 }
index 7da0a5cefa5fe5d132cd3cd56f8cf0ac773e6d03..180b8a9d0d2154ef60e680d278e05456f3b67dd4 100644 (file)
@@ -231,8 +231,8 @@ void __init ep93xx_gpio_init_irq(void)
 
        for (gpio_irq = gpio_to_irq(0);
             gpio_irq <= gpio_to_irq(EP93XX_GPIO_LINE_MAX_IRQ); ++gpio_irq) {
-               irq_set_chip(gpio_irq, &ep93xx_gpio_irq_chip);
-               irq_set_handler(gpio_irq, handle_level_irq);
+               irq_set_chip_and_handler(gpio_irq, &ep93xx_gpio_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(gpio_irq, IRQF_VALID);
        }
 
index 3a217be718f8f018945e3128e7045f32bcba3cbb..f488b66d6806286d6d5a48fd0f11f677b9ebb0a8 100644 (file)
@@ -119,8 +119,7 @@ void __init combiner_init(unsigned int combiner_nr, void __iomem *base,
 
        for (i = irq_start; i < combiner_data[combiner_nr].irq_offset
                                + MAX_IRQ_IN_COMBINER; i++) {
-               irq_set_chip(i, &combiner_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &combiner_chip, handle_level_irq);
                irq_set_chip_data(i, &combiner_data[combiner_nr]);
                set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
        }
index 0441dfc7c924650b1314b831d0cdd335d7bcc780..9d87d2ac7f687303547a57aece1fd19f10d91384 100644 (file)
@@ -208,8 +208,8 @@ int __init exynos4_init_irq_eint(void)
        int irq;
 
        for (irq = 0 ; irq <= 31 ; irq++) {
-               irq_set_chip(IRQ_EINT(irq), &exynos4_irq_eint);
-               irq_set_handler(IRQ_EINT(irq), handle_level_irq);
+               irq_set_chip_and_handler(IRQ_EINT(irq), &exynos4_irq_eint,
+                                        handle_level_irq);
                set_irq_flags(IRQ_EINT(irq), IRQF_VALID);
        }
 
index 06239f9a7afbce180bb5b74e17cfad302396d51b..38a44f9b9da255affb155c4503e4641a5974b42a 100644 (file)
@@ -102,8 +102,7 @@ static void __init __fb_init_irq(void)
        *CSR_FIQ_DISABLE = -1;
 
        for (irq = _DC21285_IRQ(0); irq < _DC21285_IRQ(20); irq++) {
-               irq_set_chip(irq, &fb_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &fb_chip, handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 }
index 0bc528e6cb2327edd050044c2ec5beafb605b043..c3a0abbc9049a67db7a539c2540572d3033ccef9 100644 (file)
@@ -151,14 +151,14 @@ void __init isa_init_irq(unsigned int host_irq)
 
        if (host_irq != (unsigned int)-1) {
                for (irq = _ISA_IRQ(0); irq < _ISA_IRQ(8); irq++) {
-                       irq_set_chip(irq, &isa_lo_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &isa_lo_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
                }
 
                for (irq = _ISA_IRQ(8); irq < _ISA_IRQ(16); irq++) {
-                       irq_set_chip(irq, &isa_hi_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &isa_hi_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
                }
 
index 0e7b56ea6295f931db7c6d1de15a173c0d1274b6..fdc7ef1391d3868a96bba536fa05fe294cf168ce 100644 (file)
@@ -217,8 +217,8 @@ void __init gemini_gpio_init(void)
 
                for (j = GPIO_IRQ_BASE + i * 32;
                     j < GPIO_IRQ_BASE + (i + 1) * 32; j++) {
-                       irq_set_chip(j, &gpio_irq_chip);
-                       irq_set_handler(j, handle_edge_irq);
+                       irq_set_chip_and_handler(j, &gpio_irq_chip,
+                                                handle_edge_irq);
                        set_irq_flags(j, IRQF_VALID);
                }
 
index f118182a99ca316e17eab9f78ee8bd21b1f9793e..51d4e44ab9734bad131efb0f4c11c399b729eedc 100644 (file)
@@ -199,15 +199,15 @@ void __init h720x_init_irq (void)
 
        /* Initialize global IRQ's, fast path */
        for (irq = 0; irq < NR_GLBL_IRQS; irq++) {
-               irq_set_chip(irq, &h720x_global_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &h720x_global_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
        /* Initialize multiplexed IRQ's, slow path */
        for (irq = IRQ_CHAINED_GPIOA(0) ; irq <= IRQ_CHAINED_GPIOD(31); irq++) {
-               irq_set_chip(irq, &h720x_gpio_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &h720x_gpio_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID );
        }
        irq_set_chained_handler(IRQ_GPIOA, h720x_gpioa_demux_handler);
@@ -217,8 +217,8 @@ void __init h720x_init_irq (void)
 
 #ifdef CONFIG_CPU_H7202
        for (irq = IRQ_CHAINED_GPIOE(0) ; irq <= IRQ_CHAINED_GPIOE(31); irq++) {
-               irq_set_chip(irq, &h720x_gpio_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &h720x_gpio_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID );
        }
        irq_set_chained_handler(IRQ_GPIOE, h720x_gpioe_demux_handler);
index dd5c72a75dad944679a4b15dd4339b8a192e66f9..c37d570b852dcb24410d382cc7322affea8dddef 100644 (file)
@@ -202,8 +202,8 @@ void __init h7202_init_irq (void)
        for (irq = IRQ_TIMER1;
                          irq < IRQ_CHAINED_TIMERX(NR_TIMERX_IRQS); irq++) {
                __mask_timerx_irq(irq);
-               irq_set_chip(irq, &h7202_timerx_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &h7202_timerx_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID );
        }
        irq_set_chained_handler(IRQ_TIMERX, h7202_timerx_demux_handler);
index 226604633d662224c1f3df5d4901d8ee32d2e8ea..d7ee2789d890a19b1db52f3015db818188de4c78 100644 (file)
@@ -68,8 +68,7 @@ void __init iop32x_init_irq(void)
                *IOP3XX_PCIIRSR = 0x0f;
 
        for (i = 0; i < NR_IRQS; i++) {
-               irq_set_chip(i, &ext_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &ext_chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
        }
 }
index 7b205e9902989bf22b21dce39f451bc2698b5ebd..f7f5d3e451c7a8cad27dbd4000c96cd085a36b60 100644 (file)
@@ -110,9 +110,9 @@ void __init iop33x_init_irq(void)
                *IOP3XX_PCIIRSR = 0x0f;
 
        for (i = 0; i < NR_IRQS; i++) {
-               irq_set_chip(i,
-                            (i < 32) ? &iop33x_irqchip1 : &iop33x_irqchip2);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i,
+                                        (i < 32) ? &iop33x_irqchip1 : &iop33x_irqchip2,
+                                        handle_level_irq);
                set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
        }
 }
index 98956a136b944c7d1bff087d96bdee5cab5af805..4068166c899384903206e2f4325049639712a480 100644 (file)
@@ -476,8 +476,8 @@ void __init ixp2000_init_irq(void)
         */
        for (irq = IRQ_IXP2000_SOFT_INT; irq <= IRQ_IXP2000_THDB3; irq++) {
                if ((1 << irq) & IXP2000_VALID_IRQ_MASK) {
-                       irq_set_chip(irq, &ixp2000_irq_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &ixp2000_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, IRQF_VALID);
                } else set_irq_flags(irq, 0);
        }
@@ -485,8 +485,8 @@ void __init ixp2000_init_irq(void)
        for (irq = IRQ_IXP2000_DRAM0_MIN_ERR; irq <= IRQ_IXP2000_SP_INT; irq++) {
                if((1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)) &
                                IXP2000_VALID_ERR_IRQ_MASK) {
-                       irq_set_chip(irq, &ixp2000_err_irq_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &ixp2000_err_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, IRQF_VALID);
                }
                else
@@ -495,8 +495,8 @@ void __init ixp2000_init_irq(void)
        irq_set_chained_handler(IRQ_IXP2000_ERRSUM, ixp2000_err_irq_handler);
 
        for (irq = IRQ_IXP2000_GPIO0; irq <= IRQ_IXP2000_GPIO7; irq++) {
-               irq_set_chip(irq, &ixp2000_GPIO_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &ixp2000_GPIO_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
        irq_set_chained_handler(IRQ_IXP2000_GPIO, ixp2000_GPIO_irq_handler);
@@ -508,8 +508,8 @@ void __init ixp2000_init_irq(void)
         */
        ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << IRQ_IXP2000_PCI));
        for (irq = IRQ_IXP2000_PCIA; irq <= IRQ_IXP2000_PCIB; irq++) {
-               irq_set_chip(irq, &ixp2000_pci_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &ixp2000_pci_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 }
index 52f88648522f29551327d3d0dacd314b376f1607..235638f800e55795629597f1de58d82ed1456715 100644 (file)
@@ -158,8 +158,8 @@ void __init ixdp2x00_init_irq(volatile unsigned long *stat_reg, volatile unsigne
        *board_irq_mask = 0xffffffff;
 
        for(irq = IXP2000_BOARD_IRQ(0); irq < IXP2000_BOARD_IRQ(board_irq_count); irq++) {
-               irq_set_chip(irq, &ixdp2x00_cpld_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &ixdp2x00_cpld_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
index f1ff50ba6c9a60f6c68128b1530631e98502397a..84835b2095579a671d8bfb4a270d22c712a52bbb 100644 (file)
@@ -115,8 +115,8 @@ void __init ixdp2x01_init_irq(void)
 
        for (irq = NR_IXP2000_IRQS; irq < NR_IXDP2X01_IRQS; irq++) {
                if (irq & valid_irq_mask) {
-                       irq_set_chip(irq, &ixdp2x01_irq_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &ixdp2x01_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, IRQF_VALID);
                } else {
                        set_irq_flags(irq, 0);
index f2039722bace7fe5547243e34b4dd0f30cca4270..a1bee33d183ea871f72d9ffaef8f4265c3a8b40f 100644 (file)
@@ -289,12 +289,12 @@ static void ixp23xx_config_irq(unsigned int irq, enum ixp23xx_irq_type type)
 {
        switch (type) {
        case IXP23XX_IRQ_LEVEL:
-               irq_set_chip(irq, &ixp23xx_irq_level_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &ixp23xx_irq_level_chip,
+                                        handle_level_irq);
                break;
        case IXP23XX_IRQ_EDGE:
-               irq_set_chip(irq, &ixp23xx_irq_edge_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &ixp23xx_irq_edge_chip,
+                                        handle_edge_irq);
                break;
        }
        set_irq_flags(irq, IRQF_VALID);
@@ -324,8 +324,8 @@ void __init ixp23xx_init_irq(void)
        }
 
        for (irq = IRQ_IXP23XX_INTA; irq <= IRQ_IXP23XX_INTB; irq++) {
-               irq_set_chip(irq, &ixp23xx_pci_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &ixp23xx_pci_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
index 720befb0a402dd92792c334170811c82b3edf47e..8dcba17c81e78489f751058506b1fc959d477d0c 100644 (file)
@@ -136,8 +136,8 @@ void __init ixdp2351_init_irq(void)
             irq++) {
                if (IXDP2351_INTA_IRQ_MASK(irq) & IXDP2351_INTA_IRQ_VALID) {
                        set_irq_flags(irq, IRQF_VALID);
-                       irq_set_handler(irq, handle_level_irq);
-                       irq_set_chip(irq, &ixdp2351_inta_chip);
+                       irq_set_chip_and_handler(irq, &ixdp2351_inta_chip,
+                                                handle_level_irq);
                }
        }
 
@@ -147,8 +147,8 @@ void __init ixdp2351_init_irq(void)
             irq++) {
                if (IXDP2351_INTB_IRQ_MASK(irq) & IXDP2351_INTB_IRQ_VALID) {
                        set_irq_flags(irq, IRQF_VALID);
-                       irq_set_handler(irq, handle_level_irq);
-                       irq_set_chip(irq, &ixdp2351_intb_chip);
+                       irq_set_chip_and_handler(irq, &ixdp2351_intb_chip,
+                                                handle_level_irq);
                }
        }
 
index eca5590711853416f7f63b1c0350484765b28921..ed19bc3143184571b3ffebe8a821947be58fd4f1 100644 (file)
@@ -252,8 +252,8 @@ void __init ixp4xx_init_irq(void)
 
         /* Default to all level triggered */
        for(i = 0; i < NR_IRQS; i++) {
-               irq_set_chip(i, &ixp4xx_irq_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &ixp4xx_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 }
index da54a5d19237e54ee6f22c0865862cfb28a06ea8..a78092dcd6fb88333221727c6e95b54f4dda088d 100644 (file)
@@ -115,12 +115,12 @@ static int ks8695_irq_set_type(struct irq_data *d, unsigned int type)
        }
 
        if (level_triggered) {
-               irq_set_chip(d->irq, &ks8695_irq_level_chip);
-               irq_set_handler(d->irq, handle_level_irq);
+               irq_set_chip_and_handler(d->irq, &ks8695_irq_level_chip,
+                                        handle_level_irq);
        }
        else {
-               irq_set_chip(d->irq, &ks8695_irq_edge_chip);
-               irq_set_handler(d->irq, handle_edge_irq);
+               irq_set_chip_and_handler(d->irq, &ks8695_irq_edge_chip,
+                                        handle_edge_irq);
        }
 
        __raw_writel(ctrl, KS8695_GPIO_VA + KS8695_IOPC);
@@ -158,16 +158,18 @@ void __init ks8695_init_irq(void)
                        case KS8695_IRQ_UART_RX:
                        case KS8695_IRQ_COMM_TX:
                        case KS8695_IRQ_COMM_RX:
-                               irq_set_chip(irq, &ks8695_irq_level_chip);
-                               irq_set_handler(irq, handle_level_irq);
+                               irq_set_chip_and_handler(irq,
+                                                        &ks8695_irq_level_chip,
+                                                        handle_level_irq);
                                break;
 
                        /* Edge-triggered interrupts */
                        default:
                                /* clear pending bit */
                                ks8695_irq_ack(irq_get_irq_data(irq));
-                               irq_set_chip(irq, &ks8695_irq_edge_chip);
-                               irq_set_handler(irq, handle_edge_irq);
+                               irq_set_chip_and_handler(irq,
+                                                        &ks8695_irq_edge_chip,
+                                                        handle_edge_irq);
                }
 
                set_irq_flags(irq, IRQF_VALID);
index 3088ca3286661513302fbf38a03f84f693514172..4eae566dfdc710934e7e834cabd7b2e83c1184cd 100644 (file)
@@ -390,8 +390,8 @@ void __init lpc32xx_init_irq(void)
 
        /* Configure supported IRQ's */
        for (i = 0; i < NR_IRQS; i++) {
-               irq_set_chip(i, &lpc32xx_irq_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &lpc32xx_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 6a8676205e6ecf4c10caa5b14cf1088055a55623..89706a0d08f1541c5293bee6ae7dfbdf30b151ad 100644 (file)
@@ -48,8 +48,7 @@ void __init icu_init_irq(void)
 
        for (irq = 0; irq < 64; irq++) {
                icu_mask_irq(irq_get_irq_data(irq));
-               irq_set_chip(irq, &icu_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &icu_irq_chip, handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 }
index ffcd4f3c63ee89afde5aa9a1eaf8e3579333712e..87e1d01edecc5d35046f2e4b7fe56b3011fd3c7c 100644 (file)
@@ -214,8 +214,8 @@ int __init trout_init_gpio(void)
 {
        int i;
        for(i = TROUT_INT_START; i <= TROUT_INT_END; i++) {
-               irq_set_chip(i, &trout_gpio_irq_chip);
-               irq_set_handler(i, handle_edge_irq);
+               irq_set_chip_and_handler(i, &trout_gpio_irq_chip,
+                                        handle_edge_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 997ded1270bfe31be89102f375bd17c21e641fc6..56a964e52ad3fa10f1a7d83f46b6958a38a64880 100644 (file)
@@ -362,8 +362,8 @@ static int __devinit msm_gpio_probe(struct platform_device *dev)
 
        for (i = 0; i < msm_gpio.gpio_chip.ngpio; ++i) {
                irq = msm_gpio_to_irq(&msm_gpio.gpio_chip, i);
-               irq_set_chip(irq, &msm_gpio_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &msm_gpio_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
index c9e0c616545c77d94f671528ac7c8d93fd3dd608..5ea273b00da8e4e1fe4273867bf037ecd12cc57f 100644 (file)
@@ -355,8 +355,8 @@ static int __init msm_init_gpio(void)
                        msm_gpio_chips[j].chip.ngpio)
                        j++;
                irq_set_chip_data(i, &msm_gpio_chips[j]);
-               irq_set_chip(i, &msm_gpio_irq_chip);
-               irq_set_handler(i, handle_edge_irq);
+               irq_set_chip_and_handler(i, &msm_gpio_irq_chip,
+                                        handle_edge_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 7a805bec32afaa7adad734a4fbc932cf2e783a4a..1b54f807c2d0d573dc87e15bb1ba90102577a580 100644 (file)
@@ -357,8 +357,7 @@ void __init msm_init_irq(void)
        writel(3, VIC_INT_MASTEREN);
 
        for (n = 0; n < NR_MSM_IRQS; n++) {
-               irq_set_chip(n, &msm_irq_chip);
-               irq_set_handler(n, handle_level_irq);
+               irq_set_chip_and_handler(n, &msm_irq_chip, handle_level_irq);
                set_irq_flags(n, IRQF_VALID);
        }
 }
index 782e8054539e7766a81c166fd11d2e77347452b5..ea514be390c6112887d253839323fb940a55628c 100644 (file)
@@ -145,8 +145,7 @@ void __init msm_init_irq(void)
        writel(1, VIC_INT_MASTEREN);
 
        for (n = 0; n < NR_MSM_IRQS; n++) {
-               irq_set_chip(n, &msm_irq_chip);
-               irq_set_handler(n, handle_level_irq);
+               irq_set_chip_and_handler(n, &msm_irq_chip, handle_level_irq);
                set_irq_flags(n, IRQF_VALID);
        }
 }
index 276f91899ff3a4f20b5cf61dea198c8f464479d4..689e78c95f38809010b3346da986c3a7931f5ca2 100644 (file)
@@ -158,8 +158,7 @@ void __init msm_init_sirc(void)
        wake_enable = 0;
 
        for (i = FIRST_SIRC_IRQ; i < LAST_SIRC_IRQ; i++) {
-               irq_set_chip(i, &sirc_irq_chip);
-               irq_set_handler(i, handle_edge_irq);
+               irq_set_chip_and_handler(i, &sirc_irq_chip, handle_edge_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index de494525ec7e48d50f3494bd149a6fcfe6c27cdd..3d095d69bc68363bf81e6b4b3bcc5cc7330ff02b 100644 (file)
@@ -199,8 +199,7 @@ static void __init mx31ads_init_expio(void)
        __raw_writew(0xFFFF, PBC_INTSTATUS_REG);
        for (i = MXC_EXP_IO_BASE; i < (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES);
             i++) {
-               irq_set_chip(i, &expio_irq_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &expio_irq_chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
        irq_set_irq_type(EXPIO_PARENT_INT, IRQ_TYPE_LEVEL_HIGH);
index a1e01dd4a4ff6d41818d7c60b80584562d39250e..2c950fef71a87ef9d39f7f79ec2831cf94ba1e7f 100644 (file)
@@ -265,8 +265,8 @@ int __init mxs_gpio_init(struct mxs_gpio_port *port, int cnt)
 
                for (j = port[i].virtual_irq_start;
                        j < port[i].virtual_irq_start + 32; j++) {
-                       irq_set_chip(j, &gpio_irq_chip);
-                       irq_set_handler(j, handle_level_irq);
+                       irq_set_chip_and_handler(j, &gpio_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(j, IRQF_VALID);
                }
 
index ae8a0d98f995c0343c26993cc7fc45f1252ae6b0..23ca9d083b2c09551a63e6628069a53daa4d0590 100644 (file)
@@ -74,8 +74,7 @@ void __init icoll_init_irq(void)
        mxs_reset_block(icoll_base + HW_ICOLL_CTRL);
 
        for (i = 0; i < MXS_INTERNAL_IRQS; i++) {
-               irq_set_chip(i, &mxs_icoll_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &mxs_icoll_chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 }
index 783e327892dcd2cb7005b7159baedb12d6eaa7b9..00023b5cf12b640f01291ba4f56b0e87941831cd 100644 (file)
@@ -171,8 +171,8 @@ void __init netx_init_irq(void)
        vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0, 0);
 
        for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) {
-               irq_set_chip(irq, &netx_hif_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &netx_hif_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
index 7e29e4ae03ee26f2cf416507feeef09f82e3187d..e27687d53504a985c379c53a4f0a07dae9f477d6 100644 (file)
@@ -107,8 +107,8 @@ void __init board_a9m9750dev_init_irq(void)
                                __func__);
 
        for (i = FPGA_IRQ(0); i <= FPGA_IRQ(7); ++i) {
-               irq_set_chip(i, &a9m9750dev_fpga_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &a9m9750dev_fpga_chip,
+                                        handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 14997e9fdb7ad8feaec130743b51dbd587418948..37ab0a2b83ad59b3b83a0b35c9047f508333d497 100644 (file)
@@ -67,8 +67,7 @@ void __init ns9xxx_init_irq(void)
                __raw_writel(prio2irq(i), SYS_IVA(i));
 
        for (i = 0; i <= 31; ++i) {
-               irq_set_chip(i, &ns9xxx_chip);
-               irq_set_handler(i, handle_fasteoi_irq);
+               irq_set_chip_and_handler(i, &ns9xxx_chip, handle_fasteoi_irq);
                set_irq_flags(i, IRQF_VALID);
                irq_set_status_flags(i, IRQ_LEVEL);
        }
index fcf1212d97060484397a7f1be9ec4b59d9ac2168..aa279f23e342af3437b8a5af84f2dcbe5c83fc0b 100644 (file)
@@ -59,8 +59,8 @@ void __init nuc93x_init_irq(void)
        __raw_writel(0xFFFFFFFE, REG_AIC_MDCR);
 
        for (irqno = IRQ_WDT; irqno <= NR_IRQS; irqno++) {
-               irq_set_chip(irqno, &nuc93x_irq_chip);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &nuc93x_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 }
index 53dbb5d7efdca251313c44935e2990cbdf0b1116..5d3da7a63af308496fc11dde8e15b5a2dd152e42 100644 (file)
@@ -230,8 +230,8 @@ void __init omap_init_irq(void)
                        irq_trigger = irq_banks[i].trigger_map >> IRQ_BIT(j);
                        omap_irq_set_cfg(j, 0, 0, irq_trigger);
 
-                       irq_set_chip(j, &omap_irq_chip);
-                       irq_set_handler(j, handle_level_irq);
+                       irq_set_chip_and_handler(j, &omap_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(j, IRQF_VALID);
                }
        }
index 4fff5e3270d823ac03454396ccbc9d207ff1bfa3..237e4530abf2320121451cf7f77bc293b7944eb9 100644 (file)
@@ -223,8 +223,7 @@ void __init omap_init_irq(void)
               nr_of_irqs, nr_banks, nr_banks > 1 ? "s" : "");
 
        for (i = 0; i < nr_of_irqs; i++) {
-               irq_set_chip(i, &omap_irq_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &omap_irq_chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 }
index a773b730e43210f63fd2602f9b934fc0086f4052..38dea05df7f87c6f4745690226dfc325f2924fd7 100644 (file)
@@ -527,8 +527,8 @@ static void __init balloon3_init_irq(void)
        pxa27x_init_irq();
        /* setup extra Balloon3 irqs */
        for (irq = BALLOON3_IRQ(0); irq <= BALLOON3_IRQ(7); irq++) {
-               irq_set_chip(irq, &balloon3_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &balloon3_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
index 70344cc75743c922be47234de7bfa3a6b7517aef..6251e3f5c62c0399a8c019d71e576de1cab49974 100644 (file)
@@ -137,8 +137,8 @@ static void __init pxa_init_low_gpio_irq(set_wake_t fn)
        GEDR0 = 0x3;
 
        for (irq = IRQ_GPIO0; irq <= IRQ_GPIO1; irq++) {
-               irq_set_chip(irq, &pxa_low_gpio_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &pxa_low_gpio_chip,
+                                        handle_edge_irq);
                irq_set_chip_data(irq, irq_base(0));
                set_irq_flags(irq, IRQF_VALID);
        }
@@ -165,8 +165,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn)
                                __raw_writel(i | IPR_VALID, IRQ_BASE + IPR(i));
 
                        irq = PXA_IRQ(i);
-                       irq_set_chip(irq, &pxa_internal_irq_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &pxa_internal_irq_chip,
+                                                handle_level_irq);
                        irq_set_chip_data(irq, base);
                        set_irq_flags(irq, IRQF_VALID);
                }
index a1b094223e31751f76afa1e3b974fa6fd890a7f5..6307f70ae22accae2ca248d71ab133f4aab150b7 100644 (file)
@@ -149,8 +149,8 @@ static void __init lpd270_init_irq(void)
 
        /* setup extra LogicPD PXA270 irqs */
        for (irq = LPD270_IRQ(2); irq <= LPD270_IRQ(4); irq++) {
-               irq_set_chip(irq, &lpd270_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &lpd270_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
        irq_set_chained_handler(IRQ_GPIO(0), lpd270_irq_handler);
index 061d01b50094215f095224f7d5a40a96b602c27e..0fea945dd6f2c3adafa2dd87d0c11d60101b935d 100644 (file)
@@ -165,8 +165,8 @@ static void __init lubbock_init_irq(void)
 
        /* setup extra lubbock irqs */
        for (irq = LUBBOCK_IRQ(0); irq <= LUBBOCK_LAST_IRQ; irq++) {
-               irq_set_chip(irq, &lubbock_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &lubbock_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
index 9ee703225ab8766433c3e0463a65a48822438dff..29b6e7a94e117382bcda1af04506e998a4d05ebf 100644 (file)
@@ -166,8 +166,8 @@ static void __init mainstone_init_irq(void)
 
        /* setup extra Mainstone irqs */
        for(irq = MAINSTONE_IRQ(0); irq <= MAINSTONE_IRQ(15); irq++) {
-               irq_set_chip(irq, &mainstone_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &mainstone_irq_chip,
+                                        handle_level_irq);
                if (irq == MAINSTONE_IRQ(10) || irq == MAINSTONE_IRQ(14))
                        set_irq_flags(irq, IRQF_VALID | IRQF_PROBE | IRQF_NOAUTOEN);
                else
index 6c02b589d1434c878d1cd9ae2a9d5fee8f5a20e9..4d0120540124fecee2b07315a99e3b1db6870895 100644 (file)
@@ -281,8 +281,8 @@ static void __init pcm990_init_irq(void)
 
        /* setup extra PCM990 irqs */
        for (irq = PCM027_IRQ(0); irq <= PCM027_IRQ(3); irq++) {
-               irq_set_chip(irq, &pcm990_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &pcm990_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
index 8abe93f4e51957d9b02b7924516f2d23534c677c..8dd107391157489a8ea651d7386cd37f1da61638 100644 (file)
@@ -362,8 +362,8 @@ static void __init pxa_init_ext_wakeup_irq(set_wake_t fn)
        int irq;
 
        for (irq = IRQ_WAKEUP0; irq <= IRQ_WAKEUP1; irq++) {
-               irq_set_chip(irq, &pxa_ext_wakeup_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &pxa_ext_wakeup_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
index 26facf1cef650f5f0e9f87c93305cba271ccc280..aa70331c080528c2ae4aaf9b600aa3b2e7cf775e 100644 (file)
@@ -310,8 +310,8 @@ static void __init viper_init_irq(void)
        /* setup ISA IRQs */
        for (level = 0; level < ARRAY_SIZE(viper_isa_irqs); level++) {
                isa_irq = viper_bit_to_irq(level);
-               irq_set_chip(isa_irq, &viper_irq_chip);
-               irq_set_handler(isa_irq, handle_edge_irq);
+               irq_set_chip_and_handler(isa_irq, &viper_irq_chip,
+                                        handle_edge_irq);
                set_irq_flags(isa_irq, IRQF_VALID | IRQF_PROBE);
        }
 
index a7cdc4a83d40f86b93e863b60666d47175bbdfc4..139aa7f2ed9060dc86b0709495635f394d953e14 100644 (file)
@@ -146,8 +146,8 @@ static void __init zeus_init_irq(void)
        /* Setup ISA IRQs */
        for (level = 0; level < ARRAY_SIZE(zeus_isa_irqs); level++) {
                isa_irq = zeus_bit_to_irq(level);
-               irq_set_chip(isa_irq, &zeus_irq_chip);
-               irq_set_handler(isa_irq, handle_edge_irq);
+               irq_set_chip_and_handler(isa_irq, &zeus_irq_chip,
+                                        handle_edge_irq);
                set_irq_flags(isa_irq, IRQF_VALID | IRQF_PROBE);
        }
 
index 49fb9886f56c2ae49f855adbfe76e9124baa126b..2e1b5309fbab54a32d7df58f2193244a17b7cee8 100644 (file)
@@ -133,20 +133,20 @@ void __init rpc_init_irq(void)
 
                switch (irq) {
                case 0 ... 7:
-                       irq_set_chip(irq, &iomd_a_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &iomd_a_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, flags);
                        break;
 
                case 8 ... 15:
-                       irq_set_chip(irq, &iomd_b_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &iomd_b_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, flags);
                        break;
 
                case 16 ... 21:
-                       irq_set_chip(irq, &iomd_dma_chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &iomd_dma_chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, flags);
                        break;
 
index 4139f5f0b418e18dbdf68c3d7b3c06fca52a97d9..bc53d2d16d1a3917ef05a9f703028b0509ed64ee 100644 (file)
@@ -154,8 +154,8 @@ static __init int bast_irq_init(void)
                for (i = 0; i < 4; i++) {
                        unsigned int irqno = bast_pc104_irqs[i];
 
-                       irq_set_chip(irqno, &bast_pc104_chip);
-                       irq_set_handler(irqno, handle_level_irq);
+                       irq_set_chip_and_handler(irqno, &bast_pc104_chip,
+                                                handle_level_irq);
                        set_irq_flags(irqno, IRQF_VALID);
                }
        }
index 30f79ae032890ed2a76bc5c49e7df97bb184d9e1..f3355d2ec634f9aa9e544c48104e0b938c906543 100644 (file)
@@ -175,8 +175,8 @@ static int s3c2412_irq_add(struct sys_device *sysdev)
        unsigned int irqno;
 
        for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) {
-               irq_set_chip(irqno, &s3c2412_irq_eint0t4);
-               irq_set_handler(irqno, handle_edge_irq);
+               irq_set_chip_and_handler(irqno, &s3c2412_irq_eint0t4,
+                                        handle_edge_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
@@ -185,8 +185,8 @@ static int s3c2412_irq_add(struct sys_device *sysdev)
        irq_set_chained_handler(IRQ_S3C2412_CFSDI, s3c2412_irq_demux_cfsdi);
 
        for (irqno = IRQ_S3C2412_SDI; irqno <= IRQ_S3C2412_CF; irqno++) {
-               irq_set_chip(irqno, &s3c2412_irq_cfsdi);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &s3c2412_irq_cfsdi,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
index de21c841b56d0f74bbad2aa4cd4bcea5d70ab1d6..77b38f2381c1ac3fd1aa159646e0e93501ede996 100644 (file)
@@ -202,13 +202,11 @@ static int __init s3c2416_add_sub(unsigned int base,
 {
        unsigned int irqno;
 
-       irq_set_chip(base, &s3c_irq_level_chip);
-       irq_set_handler(base, handle_level_irq);
+       irq_set_chip_and_handler(base, &s3c_irq_level_chip, handle_level_irq);
        irq_set_chained_handler(base, demux);
 
        for (irqno = start; irqno <= end; irqno++) {
-               irq_set_chip(irqno, chip);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, chip, handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
index 0c564b149a46166b33c89e96614aeaa7a77489d1..eb1cc0f0705e348905d982004fef868602bb3521 100644 (file)
@@ -100,13 +100,13 @@ static int s3c2440_irq_add(struct sys_device *sysdev)
 
        /* add new chained handler for wdt, ac7 */
 
-       irq_set_chip(IRQ_WDT, &s3c_irq_level_chip);
-       irq_set_handler(IRQ_WDT, handle_level_irq);
+       irq_set_chip_and_handler(IRQ_WDT, &s3c_irq_level_chip,
+                                handle_level_irq);
        irq_set_chained_handler(IRQ_WDT, s3c_irq_demux_wdtac97);
 
        for (irqno = IRQ_S3C2440_WDT; irqno <= IRQ_S3C2440_AC97; irqno++) {
-               irq_set_chip(irqno, &s3c_irq_wdtac97);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_wdtac97,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
index 5a48881c45081b601fde7680ea7fab5ae9383a8f..de07c2feaa321995bced42ae009a32895396ae64 100644 (file)
@@ -95,19 +95,19 @@ static int s3c244x_irq_add(struct sys_device *sysdev)
 {
        unsigned int irqno;
 
-       irq_set_chip(IRQ_NFCON, &s3c_irq_level_chip);
-       irq_set_handler(IRQ_NFCON, handle_level_irq);
+       irq_set_chip_and_handler(IRQ_NFCON, &s3c_irq_level_chip,
+                                handle_level_irq);
        set_irq_flags(IRQ_NFCON, IRQF_VALID);
 
        /* add chained handler for camera */
 
-       irq_set_chip(IRQ_CAM, &s3c_irq_level_chip);
-       irq_set_handler(IRQ_CAM, handle_level_irq);
+       irq_set_chip_and_handler(IRQ_CAM, &s3c_irq_level_chip,
+                                handle_level_irq);
        irq_set_chained_handler(IRQ_CAM, s3c_irq_demux_cam);
 
        for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) {
-               irq_set_chip(irqno, &s3c_irq_cam);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_cam,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
index b12431fae2630fd14e9269871dccc66d34ed143a..83ecb1173fb139a27940c2943fa70a45c7999bf0 100644 (file)
@@ -230,13 +230,11 @@ static int __init s3c2443_add_sub(unsigned int base,
 {
        unsigned int irqno;
 
-       irq_set_chip(base, &s3c_irq_level_chip);
-       irq_set_handler(base, handle_level_irq);
+       irq_set_chip_and_handler(base, &s3c_irq_level_chip, handle_level_irq);
        irq_set_chained_handler(base, demux);
 
        for (irqno = start; irqno <= end; irqno++) {
-               irq_set_chip(irqno, chip);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, chip, handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
index 6d703487cb8cf81929f32c9cdacd99ff7e055710..4d203be1f4c38b400c91000c601398ad61e9bd52 100644 (file)
@@ -197,8 +197,7 @@ static int __init s3c64xx_init_irq_eint(void)
        int irq;
 
        for (irq = IRQ_EINT(0); irq <= IRQ_EINT(27); irq++) {
-               irq_set_chip(irq, &s3c_irq_eint);
-               irq_set_handler(irq, handle_level_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);
        }
index 0f109e179cbbb598aa220e882644c9ead1b4c6df..423ddb3d65e9c8e0b50743414559852d4b9197b0 100644 (file)
@@ -323,20 +323,20 @@ void __init sa1100_init_irq(void)
        ICCR = 1;
 
        for (irq = 0; irq <= 10; irq++) {
-               irq_set_chip(irq, &sa1100_low_gpio_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &sa1100_low_gpio_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
        for (irq = 12; irq <= 31; irq++) {
-               irq_set_chip(irq, &sa1100_normal_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &sa1100_normal_chip,
+                                        handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
        for (irq = 32; irq <= 48; irq++) {
-               irq_set_chip(irq, &sa1100_high_gpio_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &sa1100_high_gpio_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
index 2e6da5fe18597ed976415fb27b1b2a730df95cfd..5dce13e429f3daae015b7f5e3b1ddbd27650de48 100644 (file)
@@ -80,8 +80,7 @@ void __init shark_init_irq(void)
        int irq;
 
        for (irq = 0; irq < NR_IRQS; irq++) {
-               irq_set_chip(irq, &fb_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &fb_chip, handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
index 4148048c4191041d6de9afef34377de31ff0d4ce..76a3f654220f2f012b842b9e2794811fba2a4710 100644 (file)
@@ -342,8 +342,8 @@ static int __init tegra_gpio_init(void)
 
                irq_set_lockdep_class(i, &gpio_lock_class);
                irq_set_chip_data(i, bank);
-               irq_set_chip(i, &tegra_gpio_irq_chip);
-               irq_set_handler(i, handle_simple_irq);
+               irq_set_chip_and_handler(i, &tegra_gpio_irq_chip,
+                                        handle_simple_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 6b5c8b8abe02eba3fc52ab65b290135fabee4579..4330d8995b2799f1375e78d52bcfb65ea8661341 100644 (file)
@@ -154,8 +154,7 @@ void __init tegra_init_irq(void)
 
        for (i = 0; i < INT_MAIN_NR; i++) {
                irq = INT_PRI_BASE + i;
-               irq_set_chip(irq, &tegra_irq);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &tegra_irq, handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 }
index 5f2322e6c108014dc5b68ce113b503a8275de62f..6b86416c94c92080e2120bec011882d1a1481666 100644 (file)
@@ -90,8 +90,7 @@ static irqreturn_t modem_cpu_irq_handler(int irq, void *data)
 
 static void create_virtual_irq(int irq, struct irq_chip *modem_irq_chip)
 {
-       irq_set_chip(irq, modem_irq_chip);
-       irq_set_handler(irq, handle_simple_irq);
+       irq_set_chip_and_handler(irq, modem_irq_chip, handle_simple_irq);
        set_irq_flags(irq, IRQF_VALID);
 
        pr_debug("modem_irq: Created virtual IRQ %d\n", irq);
index e495c014fefda9d4f27e9065b30cf1e3d14cad70..245140c0df107d5b00830032f3351fe6cc82ff88 100644 (file)
@@ -136,8 +136,8 @@ void __init vt8500_init_irq(void)
                        /* Disable all interrupts and route them to IRQ */
                        writeb(0x00, ic_regbase + VT8500_IC_DCTR + i);
 
-                       irq_set_chip(i, &vt8500_irq_chip);
-                       irq_set_handler(i, handle_level_irq);
+                       irq_set_chip_and_handler(i, &vt8500_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(i, IRQF_VALID);
                }
        } else {
@@ -167,8 +167,8 @@ void __init wm8505_init_irq(void)
                                writeb(0x00, sic_regbase + VT8500_IC_DCTR
                                                                + i - 64);
 
-                       irq_set_chip(i, &vt8500_irq_chip);
-                       irq_set_handler(i, handle_level_irq);
+                       irq_set_chip_and_handler(i, &vt8500_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(i, IRQF_VALID);
                }
        } else {
index 5947d1f630d2be6607ef68993460dc5133f2e94e..7bf143c443f15c27ec30f079b9864304db8ae881 100644 (file)
@@ -207,8 +207,8 @@ void __init nuc900_init_irq(void)
        __raw_writel(0xFFFFFFFE, REG_AIC_MDCR);
 
        for (irqno = IRQ_WDT; irqno <= IRQ_ADC; irqno++) {
-               irq_set_chip(irqno, &nuc900_irq_chip);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &nuc900_irq_chip,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 }
index 9d424ce93354babf0b78745c901e6741848e7f6a..f0ba0726306cb4f60efe8091ee8b09f60804131e 100644 (file)
@@ -181,8 +181,7 @@ int __init mxc_expio_init(u32 base, u32 p_irq)
        __raw_writew(0x1F, brd_io + INTR_MASK_REG);
        for (i = MXC_EXP_IO_BASE;
             i < (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES); i++) {
-               irq_set_chip(i, &expio_irq_chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &expio_irq_chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
        irq_set_irq_type(p_irq, IRQF_TRIGGER_LOW);
index 8b30c83a2ab18fbfc1840958389e4846c242864c..09e2bd0fcdca742a41b004d3c846fa16b298a309 100644 (file)
@@ -139,8 +139,8 @@ void __init mxc_init_irq(void __iomem *irqbase)
        __raw_writel(0, avic_base + AVIC_INTTYPEH);
        __raw_writel(0, avic_base + AVIC_INTTYPEL);
        for (i = 0; i < MXC_INTERNAL_IRQS; i++) {
-               irq_set_chip(i, &mxc_avic_chip.base);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &mxc_avic_chip.base,
+                                        handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 2ff0b3f9b46d7240b13d8f7bb7a193d045ed17e6..7a107246fd98849b6f8efe34316d977629f4bef8 100644 (file)
@@ -311,8 +311,8 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt)
                __raw_writel(~0, port[i].base + GPIO_ISR);
                for (j = port[i].virtual_irq_start;
                        j < port[i].virtual_irq_start + 32; j++) {
-                       irq_set_chip(j, &gpio_irq_chip);
-                       irq_set_handler(j, handle_level_irq);
+                       irq_set_chip_and_handler(j, &gpio_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(j, IRQF_VALID);
                }
 
index c299152e0841900e014f84f7467257e6f018476d..57f9395f87ceaddb2cbd522e6b27a4555af6140d 100644 (file)
@@ -167,8 +167,8 @@ void __init tzic_init_irq(void __iomem *irqbase)
        /* all IRQ no FIQ Warning :: No selection */
 
        for (i = 0; i < MXC_INTERNAL_IRQS; i++) {
-               irq_set_chip(i, &mxc_tzic_chip.base);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, &mxc_tzic_chip.base,
+                                        handle_level_irq);
                set_irq_flags(i, IRQF_VALID);
        }
 
index 63adc4d417fef7f33d0a49d4ac0bb31aa1977346..f49748eca1a3ad605c57e5effb170cde76b999e5 100644 (file)
@@ -725,8 +725,8 @@ static int nmk_gpio_init_irq(struct nmk_gpio_chip *nmk_chip)
 
        first_irq = NOMADIK_GPIO_TO_IRQ(nmk_chip->chip.base);
        for (i = first_irq; i < first_irq + nmk_chip->chip.ngpio; i++) {
-               irq_set_chip(i, &nmk_gpio_irq_chip);
-               irq_set_handler(i, handle_edge_irq);
+               irq_set_chip_and_handler(i, &nmk_gpio_irq_chip,
+                                        handle_edge_irq);
                set_irq_flags(i, IRQF_VALID);
                irq_set_chip_data(i, nmk_chip);
                irq_set_irq_type(i, IRQ_TYPE_EDGE_FALLING);
index 9ea0ae4b782f4b4569e235bac47b19b8ae72360d..a431a138f4027b238e21cc80bbc5144e8bffab21 100644 (file)
@@ -474,8 +474,8 @@ void __init orion_gpio_init(int gpio_base, int ngpio,
        for (i = 0; i < ngpio; i++) {
                unsigned int irq = secondary_irq_base + i;
 
-               irq_set_chip(irq, &orion_gpio_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &orion_gpio_irq_chip,
+                                        handle_level_irq);
                irq_set_chip_data(irq, ochip);
                irq_set_status_flags(irq, IRQ_LEVEL);
                set_irq_flags(irq, IRQF_VALID);
index f533bdeaa72bad9c6beba0a6f2120543785fd8a7..d8d638e09f8fd7d958324df5b74a5db0d9df0218 100644 (file)
@@ -56,8 +56,8 @@ void __init orion_irq_init(unsigned int irq_start, void __iomem *maskaddr)
        for (i = 0; i < 32; i++) {
                unsigned int irq = irq_start + i;
 
-               irq_set_chip(irq, &orion_irq_chip);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &orion_irq_chip,
+                                        handle_level_irq);
                irq_set_chip_data(irq, maskaddr);
                irq_set_status_flags(irq, IRQ_LEVEL);
                set_irq_flags(irq, IRQF_VALID);
index 5e05467eec3dc34c3ead6c70867ebb671bea037b..dce088f4567819f3d6574f5632d4b065ef3e54bf 100644 (file)
@@ -284,8 +284,8 @@ void __init pxa_init_gpio(int mux_irq, int start, int end, set_wake_t fn)
        }
 
        for (irq  = gpio_to_irq(start); irq <= gpio_to_irq(end); irq++) {
-               irq_set_chip(irq, &pxa_muxed_gpio_chip);
-               irq_set_handler(irq, handle_edge_irq);
+               irq_set_chip_and_handler(irq, &pxa_muxed_gpio_chip,
+                                        handle_edge_irq);
                set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
        }
 
index c2a42d526635115273a208e3a6c2bfd8c89b12a1..9aee7e1668b1e464a908af6243ea62f6b5f9e76b 100644 (file)
@@ -592,8 +592,8 @@ void __init s3c24xx_init_irq(void)
                case IRQ_UART1:
                case IRQ_UART2:
                case IRQ_ADCPARENT:
-                       irq_set_chip(irqno, &s3c_irq_level_chip);
-                       irq_set_handler(irqno, handle_level_irq);
+                       irq_set_chip_and_handler(irqno, &s3c_irq_level_chip,
+                                                handle_level_irq);
                        break;
 
                case IRQ_RESERVED6:
@@ -603,8 +603,8 @@ void __init s3c24xx_init_irq(void)
 
                default:
                        //irqdbf("registering irq %d (s3c irq)\n", irqno);
-                       irq_set_chip(irqno, &s3c_irq_chip);
-                       irq_set_handler(irqno, handle_edge_irq);
+                       irq_set_chip_and_handler(irqno, &s3c_irq_chip,
+                                                handle_edge_irq);
                        set_irq_flags(irqno, IRQF_VALID);
                }
        }
@@ -623,15 +623,15 @@ void __init s3c24xx_init_irq(void)
 
        for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) {
                irqdbf("registering irq %d (ext int)\n", irqno);
-               irq_set_chip(irqno, &s3c_irq_eint0t4);
-               irq_set_handler(irqno, handle_edge_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_eint0t4,
+                                        handle_edge_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
        for (irqno = IRQ_EINT4; irqno <= IRQ_EINT23; irqno++) {
                irqdbf("registering irq %d (extended s3c irq)\n", irqno);
-               irq_set_chip(irqno, &s3c_irqext_chip);
-               irq_set_handler(irqno, handle_edge_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irqext_chip,
+                                        handle_edge_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
@@ -641,29 +641,28 @@ void __init s3c24xx_init_irq(void)
 
        for (irqno = IRQ_S3CUART_RX0; irqno <= IRQ_S3CUART_ERR0; irqno++) {
                irqdbf("registering irq %d (s3c uart0 irq)\n", irqno);
-               irq_set_chip(irqno, &s3c_irq_uart0);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_uart0,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
        for (irqno = IRQ_S3CUART_RX1; irqno <= IRQ_S3CUART_ERR1; irqno++) {
                irqdbf("registering irq %d (s3c uart1 irq)\n", irqno);
-               irq_set_chip(irqno, &s3c_irq_uart1);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_uart1,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
        for (irqno = IRQ_S3CUART_RX2; irqno <= IRQ_S3CUART_ERR2; irqno++) {
                irqdbf("registering irq %d (s3c uart2 irq)\n", irqno);
-               irq_set_chip(irqno, &s3c_irq_uart2);
-               irq_set_handler(irqno, handle_level_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_uart2,
+                                        handle_level_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
        for (irqno = IRQ_TC; irqno <= IRQ_ADC; irqno++) {
                irqdbf("registering irq %d (s3c adc irq)\n", irqno);
-               irq_set_chip(irqno, &s3c_irq_adc);
-               irq_set_handler(irqno, handle_edge_irq);
+               irq_set_chip_and_handler(irqno, &s3c_irq_adc, handle_edge_irq);
                set_irq_flags(irqno, IRQF_VALID);
        }
 
index f3d15e8c02c1e94b8d5668ec44d68406cb2eb1e8..b5bb774985b0c7db17eaf3aa91e805d05c1ffdfd 100644 (file)
@@ -208,8 +208,7 @@ int __init s5p_init_irq_eint(void)
                irq_set_chip(irq, &s5p_irq_vic_eint);
 
        for (irq = IRQ_EINT(16); irq <= IRQ_EINT(31); irq++) {
-               irq_set_chip(irq, &s5p_irq_eint);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &s5p_irq_eint, handle_level_irq);
                set_irq_flags(irq, IRQF_VALID);
        }
 
index 9dbad70bdd09784b3cc2b70b65a48a566293ea64..4d4e571af5530dfd8ff5d72ef74be8d25b8a9b55 100644 (file)
@@ -117,8 +117,7 @@ static void __init s3c_init_uart_irq(struct s3c_uart_irq *uirq)
        for (offs = 0; offs < 3; offs++) {
                irq = uirq->base_irq + offs;
 
-               irq_set_chip(irq, &s3c_irq_uart);
-               irq_set_handler(irq, handle_level_irq);
+               irq_set_chip_and_handler(irq, &s3c_irq_uart, handle_level_irq);
                irq_set_chip_data(irq, uirq);
                set_irq_flags(irq, IRQF_VALID);
        }
index b4294cc140fa175acf783c0994ca7f4ff8976f91..961fb7261243faf87baf47ce6ca420fc19b30d02 100644 (file)
@@ -107,8 +107,8 @@ int spear_shirq_register(struct spear_shirq *shirq)
 
        irq_set_chained_handler(shirq->irq, shirq_handler);
        for (i = 0; i < shirq->dev_count; i++) {
-               irq_set_chip(shirq->dev_config[i].virq, &shirq_chip);
-               irq_set_handler(shirq->dev_config[i].virq, handle_simple_irq);
+               irq_set_chip_and_handler(shirq->dev_config[i].virq,
+                                        &shirq_chip, handle_simple_irq);
                set_irq_flags(shirq->dev_config[i].virq, IRQF_VALID);
                irq_set_chip_data(shirq->dev_config[i].virq, shirq);
        }
index fc2e76488c16988f94d18d2d9b9c42f39793fcee..6fdf9acf82ed50ad70472c1c056106f59a5fa8c2 100644 (file)
@@ -35,8 +35,7 @@ void __init stmp3xxx_init_irq(struct irq_chip *chip)
        /* Disable all interrupts initially */
        for (i = 0; i < NR_REAL_IRQS; i++) {
                chip->irq_mask(irq_get_irq_data(i));
-               irq_set_chip(i, chip);
-               irq_set_handler(i, handle_level_irq);
+               irq_set_chip_and_handler(i, chip, handle_level_irq);
                set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
        }
 
index 9057d932799a4f06b59db25d6db2f34e161ff719..3def03b3217d009b51d30c03e88e81c797c24105 100644 (file)
@@ -533,8 +533,8 @@ int __init stmp3xxx_pinmux_init(int virtual_irq_start)
 
                for (virq = pm->virq; virq < pm->virq; virq++) {
                        gpio_irq_chip.irq_mask(irq_get_irq_data(virq));
-                       irq_set_chip(virq, &gpio_irq_chip);
-                       irq_set_handler(virq, handle_level_irq);
+                       irq_set_chip_and_handler(virq, &gpio_irq_chip,
+                                                handle_level_irq);
                        set_irq_flags(virq, IRQF_VALID);
                }
                r = gpiochip_add(&pm->chip);
index f21d838044c866d986eadddddbcb04d3bf21ad5a..f0cc8e19b0943dcfb96078895b14d1232bf7ab79 100644 (file)
@@ -64,8 +64,8 @@ void __init fpga_irq_init(int parent_irq, u32 valid, struct fpga_irq_data *f)
                        unsigned int irq = f->irq_start + i;
 
                        irq_set_chip_data(irq, f);
-                       irq_set_chip(irq, &f->chip);
-                       irq_set_handler(irq, handle_level_irq);
+                       irq_set_chip_and_handler(irq, &f->chip,
+                                                handle_level_irq);
                        set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
                }
        }