/*
* 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
}
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;
}
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);
}
{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)
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);
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;
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()) {
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()) {
/* 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");
action = action->next;
} while (action);
- if (status & SA_SAMPLE_RANDOM)
+ if (status & IRQF_SAMPLE_RANDOM)
add_interrupt_randomness(irq);
local_irq_disable();
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;
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;
/* 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");
};
omap_set_gpio_direction(gpio, 1);
- ts->irq_type = SA_TRIGGER_FALLING;
+ ts->irq_type = IRQF_TRIGGER_FALLING;
return 0;
}
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;
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);
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;
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);