Commit d54b5caa authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] irq-flags: usb: Use the new IRQF_ constants

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 40663cc7
...@@ -125,7 +125,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id) ...@@ -125,7 +125,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
pci_set_master (dev); pci_set_master (dev);
retval = usb_add_hcd (hcd, dev->irq, SA_SHIRQ); retval = usb_add_hcd (hcd, dev->irq, IRQF_SHARED);
if (retval != 0) if (retval != 0)
goto err4; goto err4;
return retval; return retval;
......
...@@ -1653,13 +1653,13 @@ static int __devinit at91udc_probe(struct platform_device *pdev) ...@@ -1653,13 +1653,13 @@ static int __devinit at91udc_probe(struct platform_device *pdev)
pullup(udc, 0); pullup(udc, 0);
/* request UDC and maybe VBUS irqs */ /* request UDC and maybe VBUS irqs */
if (request_irq(AT91_ID_UDP, at91_udc_irq, SA_INTERRUPT, driver_name, udc)) { if (request_irq(AT91_ID_UDP, at91_udc_irq, IRQF_DISABLED, driver_name, udc)) {
DBG("request irq %d failed\n", AT91_ID_UDP); DBG("request irq %d failed\n", AT91_ID_UDP);
retval = -EBUSY; retval = -EBUSY;
goto fail1; goto fail1;
} }
if (udc->board.vbus_pin > 0) { if (udc->board.vbus_pin > 0) {
if (request_irq(udc->board.vbus_pin, at91_vbus_irq, SA_INTERRUPT, driver_name, udc)) { if (request_irq(udc->board.vbus_pin, at91_vbus_irq, IRQF_DISABLED, driver_name, udc)) {
DBG("request vbus irq %d failed\n", udc->board.vbus_pin); DBG("request vbus irq %d failed\n", udc->board.vbus_pin);
free_irq(AT91_ID_UDP, udc); free_irq(AT91_ID_UDP, udc);
retval = -EBUSY; retval = -EBUSY;
......
...@@ -1916,7 +1916,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -1916,7 +1916,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
/* init to known state, then setup irqs */ /* init to known state, then setup irqs */
udc_reset(dev); udc_reset(dev);
udc_reinit (dev); udc_reinit (dev);
if (request_irq(pdev->irq, goku_irq, SA_SHIRQ/*|SA_SAMPLE_RANDOM*/, if (request_irq(pdev->irq, goku_irq, IRQF_SHARED/*|IRQF_SAMPLE_RANDOM*/,
driver_name, dev) != 0) { driver_name, dev) != 0) {
DBG(dev, "request interrupt %d failed\n", pdev->irq); DBG(dev, "request interrupt %d failed\n", pdev->irq);
retval = -EBUSY; retval = -EBUSY;
......
...@@ -2107,7 +2107,7 @@ static int lh7a40x_udc_probe(struct platform_device *pdev) ...@@ -2107,7 +2107,7 @@ static int lh7a40x_udc_probe(struct platform_device *pdev)
/* irq setup after old hardware state is cleaned up */ /* irq setup after old hardware state is cleaned up */
retval = retval =
request_irq(IRQ_USBINTR, lh7a40x_udc_irq, SA_INTERRUPT, driver_name, request_irq(IRQ_USBINTR, lh7a40x_udc_irq, IRQF_DISABLED, driver_name,
dev); dev);
if (retval != 0) { if (retval != 0) {
DEBUG(KERN_ERR "%s: can't get irq %i, err %d\n", driver_name, DEBUG(KERN_ERR "%s: can't get irq %i, err %d\n", driver_name,
......
...@@ -2895,7 +2895,7 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -2895,7 +2895,7 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
goto done; goto done;
} }
if (request_irq (pdev->irq, net2280_irq, SA_SHIRQ, driver_name, dev) if (request_irq (pdev->irq, net2280_irq, IRQF_SHARED, driver_name, dev)
!= 0) { != 0) {
ERROR (dev, "request interrupt %d failed\n", pdev->irq); ERROR (dev, "request interrupt %d failed\n", pdev->irq);
retval = -EBUSY; retval = -EBUSY;
......
...@@ -2818,7 +2818,7 @@ static int __init omap_udc_probe(struct platform_device *pdev) ...@@ -2818,7 +2818,7 @@ static int __init omap_udc_probe(struct platform_device *pdev)
/* USB general purpose IRQ: ep0, state changes, dma, etc */ /* USB general purpose IRQ: ep0, state changes, dma, etc */
status = request_irq(pdev->resource[1].start, omap_udc_irq, status = request_irq(pdev->resource[1].start, omap_udc_irq,
SA_SAMPLE_RANDOM, driver_name, udc); IRQF_SAMPLE_RANDOM, driver_name, udc);
if (status != 0) { if (status != 0) {
ERR( "can't get irq %ld, err %d\n", ERR( "can't get irq %ld, err %d\n",
pdev->resource[1].start, status); pdev->resource[1].start, status);
...@@ -2827,7 +2827,7 @@ static int __init omap_udc_probe(struct platform_device *pdev) ...@@ -2827,7 +2827,7 @@ static int __init omap_udc_probe(struct platform_device *pdev)
/* USB "non-iso" IRQ (PIO for all but ep0) */ /* USB "non-iso" IRQ (PIO for all but ep0) */
status = request_irq(pdev->resource[2].start, omap_udc_pio_irq, status = request_irq(pdev->resource[2].start, omap_udc_pio_irq,
SA_SAMPLE_RANDOM, "omap_udc pio", udc); IRQF_SAMPLE_RANDOM, "omap_udc pio", udc);
if (status != 0) { if (status != 0) {
ERR( "can't get irq %ld, err %d\n", ERR( "can't get irq %ld, err %d\n",
pdev->resource[2].start, status); pdev->resource[2].start, status);
...@@ -2835,7 +2835,7 @@ static int __init omap_udc_probe(struct platform_device *pdev) ...@@ -2835,7 +2835,7 @@ static int __init omap_udc_probe(struct platform_device *pdev)
} }
#ifdef USE_ISO #ifdef USE_ISO
status = request_irq(pdev->resource[3].start, omap_udc_iso_irq, status = request_irq(pdev->resource[3].start, omap_udc_iso_irq,
SA_INTERRUPT, "omap_udc iso", udc); IRQF_DISABLED, "omap_udc iso", udc);
if (status != 0) { if (status != 0) {
ERR("can't get irq %ld, err %d\n", ERR("can't get irq %ld, err %d\n",
pdev->resource[3].start, status); pdev->resource[3].start, status);
......
...@@ -2521,7 +2521,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev) ...@@ -2521,7 +2521,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev)
/* irq setup after old hardware state is cleaned up */ /* irq setup after old hardware state is cleaned up */
retval = request_irq(IRQ_USB, pxa2xx_udc_irq, retval = request_irq(IRQ_USB, pxa2xx_udc_irq,
SA_INTERRUPT, driver_name, dev); IRQF_DISABLED, driver_name, dev);
if (retval != 0) { if (retval != 0) {
printk(KERN_ERR "%s: can't get irq %i, err %d\n", printk(KERN_ERR "%s: can't get irq %i, err %d\n",
driver_name, IRQ_USB, retval); driver_name, IRQ_USB, retval);
...@@ -2533,7 +2533,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev) ...@@ -2533,7 +2533,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev)
if (machine_is_lubbock()) { if (machine_is_lubbock()) {
retval = request_irq(LUBBOCK_USB_DISC_IRQ, retval = request_irq(LUBBOCK_USB_DISC_IRQ,
lubbock_vbus_irq, lubbock_vbus_irq,
SA_INTERRUPT | SA_SAMPLE_RANDOM, IRQF_DISABLED | IRQF_SAMPLE_RANDOM,
driver_name, dev); driver_name, dev);
if (retval != 0) { if (retval != 0) {
printk(KERN_ERR "%s: can't get irq %i, err %d\n", printk(KERN_ERR "%s: can't get irq %i, err %d\n",
...@@ -2544,7 +2544,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev) ...@@ -2544,7 +2544,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev)
} }
retval = request_irq(LUBBOCK_USB_IRQ, retval = request_irq(LUBBOCK_USB_IRQ,
lubbock_vbus_irq, lubbock_vbus_irq,
SA_INTERRUPT | SA_SAMPLE_RANDOM, IRQF_DISABLED | IRQF_SAMPLE_RANDOM,
driver_name, dev); driver_name, dev);
if (retval != 0) { if (retval != 0) {
printk(KERN_ERR "%s: can't get irq %i, err %d\n", printk(KERN_ERR "%s: can't get irq %i, err %d\n",
......
...@@ -148,7 +148,7 @@ int usb_ehci_au1xxx_probe(const struct hc_driver *driver, ...@@ -148,7 +148,7 @@ int usb_ehci_au1xxx_probe(const struct hc_driver *driver,
/* ehci_hcd_init(hcd_to_ehci(hcd)); */ /* ehci_hcd_init(hcd_to_ehci(hcd)); */
retval = retval =
usb_add_hcd(hcd, dev->resource[1].start, SA_INTERRUPT | SA_SHIRQ); usb_add_hcd(hcd, dev->resource[1].start, IRQF_DISABLED | IRQF_SHARED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -121,7 +121,7 @@ int usb_hcd_fsl_probe(const struct hc_driver *driver, ...@@ -121,7 +121,7 @@ int usb_hcd_fsl_probe(const struct hc_driver *driver,
temp = in_le32(hcd->regs + 0x1a8); temp = in_le32(hcd->regs + 0x1a8);
out_le32(hcd->regs + 0x1a8, temp | 0x3); out_le32(hcd->regs + 0x1a8, temp | 0x3);
retval = usb_add_hcd(hcd, irq, SA_SHIRQ); retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (retval != 0) if (retval != 0)
goto err4; goto err4;
return retval; return retval;
......
...@@ -1653,7 +1653,7 @@ static int __init isp116x_probe(struct platform_device *pdev) ...@@ -1653,7 +1653,7 @@ static int __init isp116x_probe(struct platform_device *pdev)
goto err6; goto err6;
} }
ret = usb_add_hcd(hcd, irq, SA_INTERRUPT); ret = usb_add_hcd(hcd, irq, IRQF_DISABLED);
if (ret) if (ret)
goto err6; goto err6;
......
...@@ -125,7 +125,7 @@ int usb_hcd_at91_probe (const struct hc_driver *driver, struct platform_device * ...@@ -125,7 +125,7 @@ int usb_hcd_at91_probe (const struct hc_driver *driver, struct platform_device *
at91_start_hc(pdev); at91_start_hc(pdev);
ohci_hcd_init(hcd_to_ohci(hcd)); ohci_hcd_init(hcd_to_ohci(hcd));
retval = usb_add_hcd(hcd, pdev->resource[1].start, SA_INTERRUPT); retval = usb_add_hcd(hcd, pdev->resource[1].start, IRQF_DISABLED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -191,7 +191,7 @@ static int usb_ohci_au1xxx_probe(const struct hc_driver *driver, ...@@ -191,7 +191,7 @@ static int usb_ohci_au1xxx_probe(const struct hc_driver *driver,
au1xxx_start_ohc(dev); au1xxx_start_ohc(dev);
ohci_hcd_init(hcd_to_ohci(hcd)); ohci_hcd_init(hcd_to_ohci(hcd));
retval = usb_add_hcd(hcd, dev->resource[1].start, SA_INTERRUPT | SA_SHIRQ); retval = usb_add_hcd(hcd, dev->resource[1].start, IRQF_DISABLED | IRQF_SHARED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -100,7 +100,7 @@ int usb_hcd_lh7a404_probe (const struct hc_driver *driver, ...@@ -100,7 +100,7 @@ int usb_hcd_lh7a404_probe (const struct hc_driver *driver,
lh7a404_start_hc(dev); lh7a404_start_hc(dev);
ohci_hcd_init(hcd_to_ohci(hcd)); ohci_hcd_init(hcd_to_ohci(hcd));
retval = usb_add_hcd(hcd, dev->resource[1].start, SA_INTERRUPT); retval = usb_add_hcd(hcd, dev->resource[1].start, IRQF_DISABLED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* This file is licenced under the GPL. * This file is licenced under the GPL.
*/ */
#include <linux/signal.h> /* SA_INTERRUPT */ #include <linux/signal.h> /* IRQF_DISABLED */
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/clk.h> #include <linux/clk.h>
...@@ -334,7 +334,7 @@ int usb_hcd_omap_probe (const struct hc_driver *driver, ...@@ -334,7 +334,7 @@ int usb_hcd_omap_probe (const struct hc_driver *driver,
retval = -ENXIO; retval = -ENXIO;
goto err2; goto err2;
} }
retval = usb_add_hcd(hcd, irq, SA_INTERRUPT); retval = usb_add_hcd(hcd, irq, IRQF_DISABLED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -75,7 +75,7 @@ static int usb_hcd_ppc_soc_probe(const struct hc_driver *driver, ...@@ -75,7 +75,7 @@ static int usb_hcd_ppc_soc_probe(const struct hc_driver *driver,
ohci->flags |= OHCI_BIG_ENDIAN; ohci->flags |= OHCI_BIG_ENDIAN;
ohci_hcd_init(ohci); ohci_hcd_init(ohci);
retval = usb_add_hcd(hcd, irq, SA_INTERRUPT); retval = usb_add_hcd(hcd, irq, IRQF_DISABLED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -190,7 +190,7 @@ int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_device ...@@ -190,7 +190,7 @@ int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_device
ohci_hcd_init(hcd_to_ohci(hcd)); ohci_hcd_init(hcd_to_ohci(hcd));
retval = usb_add_hcd(hcd, pdev->resource[1].start, SA_INTERRUPT); retval = usb_add_hcd(hcd, pdev->resource[1].start, IRQF_DISABLED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -388,7 +388,7 @@ static int usb_hcd_s3c2410_probe (const struct hc_driver *driver, ...@@ -388,7 +388,7 @@ static int usb_hcd_s3c2410_probe (const struct hc_driver *driver,
ohci_hcd_init(hcd_to_ohci(hcd)); ohci_hcd_init(hcd_to_ohci(hcd));
retval = usb_add_hcd(hcd, dev->resource[1].start, SA_INTERRUPT); retval = usb_add_hcd(hcd, dev->resource[1].start, IRQF_DISABLED);
if (retval != 0) if (retval != 0)
goto err_ioremap; goto err_ioremap;
......
...@@ -143,7 +143,7 @@ int usb_hcd_sa1111_probe (const struct hc_driver *driver, ...@@ -143,7 +143,7 @@ int usb_hcd_sa1111_probe (const struct hc_driver *driver,
sa1111_start_hc(dev); sa1111_start_hc(dev);
ohci_hcd_init(hcd_to_ohci(hcd)); ohci_hcd_init(hcd_to_ohci(hcd));
retval = usb_add_hcd(hcd, dev->irq[1], SA_INTERRUPT); retval = usb_add_hcd(hcd, dev->irq[1], IRQF_DISABLED);
if (retval == 0) if (retval == 0)
return retval; return retval;
......
...@@ -1749,7 +1749,7 @@ sl811h_probe(struct platform_device *dev) ...@@ -1749,7 +1749,7 @@ sl811h_probe(struct platform_device *dev)
* was on a system with single edge triggering, so most sorts of * was on a system with single edge triggering, so most sorts of
* triggering arrangement should work. * triggering arrangement should work.
*/ */
retval = usb_add_hcd(hcd, irq, SA_INTERRUPT | SA_SHIRQ); retval = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED);
if (retval != 0) if (retval != 0)
goto err6; goto err6;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment