]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Convert driver interrupt flags SA_* to IRQF_*
authorDirk Behme <dirk.behme@gmail.com>
Wed, 31 Jan 2007 19:11:36 +0000 (11:11 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 31 Jan 2007 19:11:36 +0000 (11:11 -0800)
Convert driver interrupt flags SA_* to IRQF_*

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 files changed:
arch/arm/plat-omap/dsp/dsp_mem.c
arch/arm/plat-omap/sti/sti.c
drivers/cbus/tahvo-usb.c
drivers/char/omap-rtc.c
drivers/i2c/chips/isp1301_omap.c
drivers/i2c/chips/menelaus.c
drivers/i2c/chips/twl4030_core.c
drivers/input/keyboard/innovator_ps2.c
drivers/input/touchscreen/ads7846.c
drivers/input/touchscreen/omap/omap_ts.c
drivers/input/touchscreen/omap/ts_hx.c
drivers/media/video/omap/omap16xxcam.c
drivers/rtc/rtc-omap.c
drivers/spi/tsc2102.c
drivers/usb/musb/musbhsdma.c

index ccf8a54c0e4351c9812ad9cb6349ca4019457fae..8442a960c370050a6abaf92dfff29a5026c4caee 100644 (file)
@@ -2498,7 +2498,7 @@ int __init dsp_mem_init(void)
        /*
         * DSP MMU interrupt setup
         */
-       ret = request_irq(omap_dsp->mmu_irq, dsp_mmu_interrupt, SA_INTERRUPT,
+       ret = request_irq(omap_dsp->mmu_irq, dsp_mmu_interrupt, IRQF_DISABLED,
                          "dsp_mmu",  &devid_mmu);
        if (ret) {
                printk(KERN_ERR
index d44c30d66b8db940efd9cee6273e80c6a97c06a4..e828860f037e67dc2cc340efe0a8c387f7f905a9 100644 (file)
@@ -376,7 +376,7 @@ static int __devinit sti_probe(struct platform_device *pdev)
        }
 
        ret = request_irq(platform_get_irq(pdev, 0), sti_interrupt,
-                         SA_INTERRUPT, "sti", NULL);
+                         IRQF_DISABLED, "sti", NULL);
        if (unlikely(ret != 0))
                goto err_badirq;
 
index 45b432836ae795a2d497ca1b08bcf27d72e84080..934400f69882688802c4ad28993969fb6702be17 100644 (file)
@@ -188,7 +188,7 @@ static int omap_otg_probe(struct device *dev)
        }
 
        return request_irq(tahvo_otg_dev->resource[1].start,
-                          omap_otg_irq, SA_INTERRUPT, DRIVER_NAME,
+                          omap_otg_irq, IRQF_DISABLED, DRIVER_NAME,
                           &tahvo_usb_device);
 }
 
index d57402f10772c11c992f1c61c7da81e1da4de244..f1b3fa3c953b497458fe111e95c184921ac87bec 100644 (file)
@@ -117,7 +117,7 @@ static const unsigned char days_in_mo[] =
 {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
 
 /*
- *     A very tiny interrupt handler. It runs with SA_INTERRUPT set.
+ *     A very tiny interrupt handler. It runs with IRQF_DISABLED set.
  */
 
 irqreturn_t rtc_interrupt(int irq, void *dev_id)
@@ -484,14 +484,14 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
                CMOS_WRITE(OMAP_RTC_STATUS_ALARM, OMAP_RTC_STATUS_REG);
        }
 
-       if (request_irq(omap_rtc_timer, rtc_interrupt, SA_INTERRUPT,
+       if (request_irq(omap_rtc_timer, rtc_interrupt, IRQF_DISABLED,
                        pdev->name, NULL)) {
                pr_debug("%s: RTC timer interrupt IRQ%d is not free.\n",
                        pdev->name, omap_rtc_timer);
                goto fail;
        }
 
-       if (request_irq(omap_rtc_alarm, rtc_interrupt, SA_INTERRUPT,
+       if (request_irq(omap_rtc_alarm, rtc_interrupt, IRQF_DISABLED,
                        pdev->name, NULL)) {
                pr_debug("%s: RTC alarm interrupt IRQ%d is not free.\n",
                        pdev->name, omap_rtc_alarm);
index 8e5585b71a19250ef9dc05dd8c57490d6434db8c..e2717542e0ea940bc9c56e69a202dd594db08d37 100644 (file)
@@ -927,7 +927,7 @@ static int otg_bind(struct isp1301 *isp)
 
        if (otg_dev)
                status = request_irq(otg_dev->resource[1].start, omap_otg_irq,
-                               SA_INTERRUPT, DRIVER_NAME, isp);
+                               IRQF_DISABLED, DRIVER_NAME, isp);
        else
                status = -ENODEV;
 
@@ -1609,7 +1609,7 @@ fail1:
                isp->irq = OMAP_GPIO_IRQ(2);
                omap_request_gpio(2);
                omap_set_gpio_direction(2, 1);
-               isp->irq_type = SA_TRIGGER_FALLING;
+               isp->irq_type = IRQF_TRIGGER_FALLING;
        }
 
        if (machine_is_omap_h3()) {
@@ -1618,7 +1618,7 @@ fail1:
                isp->irq = OMAP_GPIO_IRQ(14);
                omap_request_gpio(14);
                omap_set_gpio_direction(14, 1);
-               isp->irq_type = SA_TRIGGER_FALLING;
+               isp->irq_type = IRQF_TRIGGER_FALLING;
        }
 
        if (machine_is_omap_h4()) {
index d780d5c4f276f06c419621650d522c47aa9932e1..b9510f357898e60f9c2d010601dbcd607a10f9dc 100644 (file)
@@ -849,7 +849,7 @@ static int menelaus_probe(struct i2c_adapter *adapter, int address, int kind)
        /* Set output buffer strengths */
        menelaus_write_reg(MENELAUS_MCT_CTRL1, 0x73);
 
-       err = request_irq(menelaus.irq, menelaus_irq, SA_INTERRUPT,
+       err = request_irq(menelaus.irq, menelaus_irq, IRQF_DISABLED,
                          DRIVER_NAME, &menelaus);
        if (err) {
                printk(KERN_ERR "Could not get Menelaus IRQ\n");
index 961b3ba42e42058650957aa6dae18715f283da6c..31340642ce182051b74ff671011ec9e55af9cf10 100644 (file)
@@ -420,7 +420,7 @@ static void do_twl4030_module_irq(unsigned int irq, irq_desc_t *desc)
                                action = action->next;
                        } while (action);
 
-                       if (status & SA_SAMPLE_RANDOM)
+                       if (status & IRQF_SAMPLE_RANDOM)
                                add_interrupt_randomness(irq);
 
                        local_irq_disable();
index 4fa6cb3d71a808d9a87cd9c415f87cfa758fde4d..0f95f9f1b56c9620a4e99401495cdfddebfb0300 100644 (file)
@@ -1108,7 +1108,7 @@ innovator_hid_open(struct input_dev *dev)
                return 0;
 
        if (request_irq(OMAP1510_INT_FPGA_ATN, (void *) innovator_hid_interrupt,
-                       SA_INTERRUPT, PFX, hid) < 0)
+                       IRQF_DISABLED, PFX, hid) < 0)
                return -EINVAL;
 
        return 0;
index 18e85a3441faf9580a50619e5deb24d8cefea53f..0c496d5d19597cd7702641c4867d39a994dd5320 100644 (file)
@@ -897,7 +897,7 @@ static int __devinit ads7846_probe(struct spi_device *spi)
        ts->last_msg = m;
 
        if (request_irq(spi->irq, ads7846_irq,
-                       SA_SAMPLE_RANDOM | SA_TRIGGER_FALLING,
+                       IRQF_SAMPLE_RANDOM | IRQF_TRIGGER_FALLING,
                        spi->dev.bus_id, ts)) {
                dev_dbg(&spi->dev, "irq %d busy?\n", spi->irq);
                err = -EBUSY;
index 8a930d888fe74bb7fb7eb79240a06c82264d95bd..14dfc6afe2662c59f3f473afd89a0ec7685bcf18 100644 (file)
@@ -157,7 +157,7 @@ static int __init omap_ts_probe(struct platform_device *pdev)
        /* request irq */
        if (ts_omap.irq != -1) {
                if (request_irq(ts_omap.irq, omap_ts_handler,
-                               SA_SAMPLE_RANDOM | ts_omap.irq_type,
+                               IRQF_SAMPLE_RANDOM | ts_omap.irq_type,
                                OMAP_TS_NAME, &ts_omap)) {
                        printk(KERN_ERR
          "omap_ts.c: Could not allocate touchscreen IRQ!\n");
index f148f19765e011cd7b51084734276750e4abe659..9f82f5afc21f74d3ced5492bf2212c08da21f8ba 100644 (file)
@@ -98,7 +98,7 @@ static int __init hx_ts_probe(struct omap_ts_t *ts)
        };
 
        omap_set_gpio_direction(gpio, 1);
-       ts->irq_type = SA_TRIGGER_FALLING;
+       ts->irq_type = IRQF_TRIGGER_FALLING;
        return 0;
 }
 
index 3b8065891f2d44fddd1f450f15ccf1fc347f28dd..34cf1a67110f8b2f6482841d6484386795d3ab38 100644 (file)
@@ -475,7 +475,7 @@ omap16xxcam_open(void *priv)
        struct omap16xxcam *data = (struct omap16xxcam *) priv;
        int ret;
 
-       if ((ret = request_irq(INT_CAMERA, omap16xx_cam_isr, SA_INTERRUPT, 
+       if ((ret = request_irq(INT_CAMERA, omap16xx_cam_isr, IRQF_DISABLED,
                                        "camera", data))) {
                printk("FAILED to aquire irq\n");
                return ret;
index d59880d44fba26e3555c46d000c13a65e12d3ec4..9de8d67f4f8d8ac71bcbc4c198d4b496d8c4dc27 100644 (file)
@@ -417,13 +417,13 @@ static int __devinit omap_rtc_probe(struct platform_device *pdev)
                rtc_write(OMAP_RTC_STATUS_ALARM, OMAP_RTC_STATUS_REG);
 
        /* handle periodic and alarm irqs */
-       if (request_irq(omap_rtc_timer, rtc_irq, SA_INTERRUPT,
+       if (request_irq(omap_rtc_timer, rtc_irq, IRQF_DISABLED,
                        rtc->class_dev.class_id, &rtc->class_dev)) {
                pr_debug("%s: RTC timer interrupt IRQ%d already claimed\n",
                        pdev->name, omap_rtc_timer);
                goto fail0;
        }
-       if (request_irq(omap_rtc_alarm, rtc_irq, SA_INTERRUPT,
+       if (request_irq(omap_rtc_alarm, rtc_irq, IRQF_DISABLED,
                        rtc->class_dev.class_id, &rtc->class_dev)) {
                pr_debug("%s: RTC alarm interrupt IRQ%d already claimed\n",
                        pdev->name, omap_rtc_alarm);
index 91d4d214ecb81d6e3ed5fd2acc1cf9c362149f71..130b1c22dabd00b29f0b564261ea428fdc4339d9 100644 (file)
@@ -1033,8 +1033,8 @@ static int tsc2102_probe(struct spi_device *spi)
 
        clk_enable(tsc.bclk_ck);
 
-       if (request_irq(spi->irq, tsc2102_handler, SA_SAMPLE_RANDOM |
-                               SA_TRIGGER_FALLING, "tsc2102", &tsc)) {
+       if (request_irq(spi->irq, tsc2102_handler, IRQF_SAMPLE_RANDOM |
+                               IRQF_TRIGGER_FALLING, "tsc2102", &tsc)) {
                printk(KERN_ERR "Could not allocate touchscreen IRQ!\n");
                err = -EINVAL;
                goto err_clk;
index 41a9448541afbe0563c0a56cef187ff66f0276ca..ea39d0ce2934eaaf35c6e6443a6c9ce0f7e49146 100644 (file)
@@ -382,7 +382,7 @@ dma_controller_create(struct musb *pThis, void __iomem *pCoreBase)
        pController->Controller.channel_program = hsdma_channel_program;
        pController->Controller.channel_abort = hsdma_channel_abort;
 
-       if (request_irq(irq, hsdma_irq, SA_INTERRUPT,
+       if (request_irq(irq, hsdma_irq, IRQF_DISABLED,
                        pThis->controller->bus_id, &pController->Controller)) {
                dev_err(dev, "request_irq %d failed!\n", irq);
                kfree(pController);