}
omap_set_gpio_direction(PALMZ71_USBDETECT_GPIO, 1);
if (request_irq(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO),
- palmz71_powercable, SA_SAMPLE_RANDOM,
+ palmz71_powercable, IRQF_SAMPLE_RANDOM,
"palmz71-cable", 0))
printk(KERN_ERR
"IRQ request for power cable failed!\n");
return 0;
if (can_do_both_edges(sw)) {
- trigger = SA_TRIGGER_FALLING | SA_TRIGGER_RISING;
+ trigger = IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING;
sw->both_edges = 1;
} else {
if (omap_get_gpio_datain(sw->gpio))
- trigger = SA_TRIGGER_FALLING;
+ trigger = IRQF_TRIGGER_FALLING;
else
- trigger = SA_TRIGGER_RISING;
+ trigger = IRQF_TRIGGER_RISING;
}
r = request_irq(OMAP_GPIO_IRQ(sw->gpio), gpio_sw_irq_handler,
- SA_SHIRQ | trigger, sw->name, sw);
+ IRQF_SHIRQ | trigger, sw->name, sw);
if (r < 0) {
printk(KERN_ERR "gpio-switch: request_irq() failed "
"for GPIO %d\n", sw->gpio);
if (unlikely(ret))
goto fail2;
- ret = request_irq(mbox->irq, mbox_interrupt, SA_INTERRUPT,
+ ret = request_irq(mbox->irq, mbox_interrupt, IRQF_DISABLED,
mbox->name, mbox);
if (unlikely(ret)) {
printk(KERN_ERR