diff options
-rw-r--r-- | drivers/usb/core/hcd.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci.c | 8 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 2 | ||||
-rw-r--r-- | include/linux/usb/hcd.h | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index e1282328fc27..9d7fc9a39933 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c | |||
@@ -2352,7 +2352,7 @@ static int usb_hcd_request_irqs(struct usb_hcd *hcd, | |||
2352 | "io mem" : "io base", | 2352 | "io mem" : "io base", |
2353 | (unsigned long long)hcd->rsrc_start); | 2353 | (unsigned long long)hcd->rsrc_start); |
2354 | } else { | 2354 | } else { |
2355 | hcd->irq = -1; | 2355 | hcd->irq = 0; |
2356 | if (hcd->rsrc_start) | 2356 | if (hcd->rsrc_start) |
2357 | dev_info(hcd->self.controller, "%s 0x%08llx\n", | 2357 | dev_info(hcd->self.controller, "%s 0x%08llx\n", |
2358 | (hcd->driver->flags & HCD_MEMORY) ? | 2358 | (hcd->driver->flags & HCD_MEMORY) ? |
@@ -2508,7 +2508,7 @@ err_register_root_hub: | |||
2508 | clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); | 2508 | clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); |
2509 | del_timer_sync(&hcd->rh_timer); | 2509 | del_timer_sync(&hcd->rh_timer); |
2510 | err_hcd_driver_start: | 2510 | err_hcd_driver_start: |
2511 | if (usb_hcd_is_primary_hcd(hcd) && hcd->irq >= 0) | 2511 | if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0) |
2512 | free_irq(irqnum, hcd); | 2512 | free_irq(irqnum, hcd); |
2513 | err_request_irq: | 2513 | err_request_irq: |
2514 | err_hcd_driver_setup: | 2514 | err_hcd_driver_setup: |
@@ -2573,7 +2573,7 @@ void usb_remove_hcd(struct usb_hcd *hcd) | |||
2573 | del_timer_sync(&hcd->rh_timer); | 2573 | del_timer_sync(&hcd->rh_timer); |
2574 | 2574 | ||
2575 | if (usb_hcd_is_primary_hcd(hcd)) { | 2575 | if (usb_hcd_is_primary_hcd(hcd)) { |
2576 | if (hcd->irq >= 0) | 2576 | if (hcd->irq > 0) |
2577 | free_irq(hcd->irq, hcd); | 2577 | free_irq(hcd->irq, hcd); |
2578 | } | 2578 | } |
2579 | 2579 | ||
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 34b9edd86651..831fa40c609a 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -899,7 +899,7 @@ static void ohci_stop (struct usb_hcd *hcd) | |||
899 | ohci_usb_reset (ohci); | 899 | ohci_usb_reset (ohci); |
900 | ohci_writel (ohci, OHCI_INTR_MIE, &ohci->regs->intrdisable); | 900 | ohci_writel (ohci, OHCI_INTR_MIE, &ohci->regs->intrdisable); |
901 | free_irq(hcd->irq, hcd); | 901 | free_irq(hcd->irq, hcd); |
902 | hcd->irq = -1; | 902 | hcd->irq = 0; |
903 | 903 | ||
904 | if (quirk_zfmicro(ohci)) | 904 | if (quirk_zfmicro(ohci)) |
905 | del_timer(&ohci->unlink_watchdog); | 905 | del_timer(&ohci->unlink_watchdog); |
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 3a033240ec64..9e71f7c46a85 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c | |||
@@ -2396,7 +2396,7 @@ hw_died: | |||
2396 | /* FIXME when MSI-X is supported and there are multiple vectors */ | 2396 | /* FIXME when MSI-X is supported and there are multiple vectors */ |
2397 | /* Clear the MSI-X event interrupt status */ | 2397 | /* Clear the MSI-X event interrupt status */ |
2398 | 2398 | ||
2399 | if (hcd->irq != -1) { | 2399 | if (hcd->irq) { |
2400 | u32 irq_pending; | 2400 | u32 irq_pending; |
2401 | /* Acknowledge the PCI interrupt */ | 2401 | /* Acknowledge the PCI interrupt */ |
2402 | irq_pending = xhci_readl(xhci, &xhci->ir_set->irq_pending); | 2402 | irq_pending = xhci_readl(xhci, &xhci->ir_set->irq_pending); |
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index c939f5fdef9e..a629ad860329 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -224,13 +224,13 @@ static void xhci_free_irq(struct xhci_hcd *xhci) | |||
224 | int ret; | 224 | int ret; |
225 | 225 | ||
226 | /* return if using legacy interrupt */ | 226 | /* return if using legacy interrupt */ |
227 | if (xhci_to_hcd(xhci)->irq >= 0) | 227 | if (xhci_to_hcd(xhci)->irq > 0) |
228 | return; | 228 | return; |
229 | 229 | ||
230 | ret = xhci_free_msi(xhci); | 230 | ret = xhci_free_msi(xhci); |
231 | if (!ret) | 231 | if (!ret) |
232 | return; | 232 | return; |
233 | if (pdev->irq >= 0) | 233 | if (pdev->irq > 0) |
234 | free_irq(pdev->irq, xhci_to_hcd(xhci)); | 234 | free_irq(pdev->irq, xhci_to_hcd(xhci)); |
235 | 235 | ||
236 | return; | 236 | return; |
@@ -341,7 +341,7 @@ static int xhci_try_enable_msi(struct usb_hcd *hcd) | |||
341 | /* unregister the legacy interrupt */ | 341 | /* unregister the legacy interrupt */ |
342 | if (hcd->irq) | 342 | if (hcd->irq) |
343 | free_irq(hcd->irq, hcd); | 343 | free_irq(hcd->irq, hcd); |
344 | hcd->irq = -1; | 344 | hcd->irq = 0; |
345 | 345 | ||
346 | ret = xhci_setup_msix(xhci); | 346 | ret = xhci_setup_msix(xhci); |
347 | if (ret) | 347 | if (ret) |
@@ -349,7 +349,7 @@ static int xhci_try_enable_msi(struct usb_hcd *hcd) | |||
349 | ret = xhci_setup_msi(xhci); | 349 | ret = xhci_setup_msi(xhci); |
350 | 350 | ||
351 | if (!ret) | 351 | if (!ret) |
352 | /* hcd->irq is -1, we have MSI */ | 352 | /* hcd->irq is 0, we have MSI */ |
353 | return 0; | 353 | return 0; |
354 | 354 | ||
355 | if (!pdev->irq) { | 355 | if (!pdev->irq) { |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index b527e9e6dbac..0f8b82918a40 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1987,7 +1987,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) | |||
1987 | musb->xceiv->otg->default_a = 1; | 1987 | musb->xceiv->otg->default_a = 1; |
1988 | musb->xceiv->state = OTG_STATE_A_IDLE; | 1988 | musb->xceiv->state = OTG_STATE_A_IDLE; |
1989 | 1989 | ||
1990 | status = usb_add_hcd(musb_to_hcd(musb), -1, 0); | 1990 | status = usb_add_hcd(musb_to_hcd(musb), 0, 0); |
1991 | 1991 | ||
1992 | hcd->self.uses_pio_for_control = 1; | 1992 | hcd->self.uses_pio_for_control = 1; |
1993 | dev_dbg(musb->controller, "%s mode, status %d, devctl %02x %c\n", | 1993 | dev_dbg(musb->controller, "%s mode, status %d, devctl %02x %c\n", |
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index a495a3079c07..f42c29b11f71 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1957,7 +1957,7 @@ static int musb_gadget_start(struct usb_gadget *g, | |||
1957 | * handles power budgeting ... this way also | 1957 | * handles power budgeting ... this way also |
1958 | * ensures HdrcStart is indirectly called. | 1958 | * ensures HdrcStart is indirectly called. |
1959 | */ | 1959 | */ |
1960 | retval = usb_add_hcd(musb_to_hcd(musb), -1, 0); | 1960 | retval = usb_add_hcd(musb_to_hcd(musb), 0, 0); |
1961 | if (retval < 0) { | 1961 | if (retval < 0) { |
1962 | dev_dbg(musb->controller, "add_hcd failed, %d\n", retval); | 1962 | dev_dbg(musb->controller, "add_hcd failed, %d\n", retval); |
1963 | goto err2; | 1963 | goto err2; |
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index 2e6071efbfb7..5de415707c23 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h | |||
@@ -127,7 +127,7 @@ struct usb_hcd { | |||
127 | unsigned authorized_default:1; | 127 | unsigned authorized_default:1; |
128 | unsigned has_tt:1; /* Integrated TT in root hub */ | 128 | unsigned has_tt:1; /* Integrated TT in root hub */ |
129 | 129 | ||
130 | int irq; /* irq allocated */ | 130 | unsigned int irq; /* irq allocated */ |
131 | void __iomem *regs; /* device memory/io */ | 131 | void __iomem *regs; /* device memory/io */ |
132 | u64 rsrc_start; /* memory/io resource start */ | 132 | u64 rsrc_start; /* memory/io resource start */ |
133 | u64 rsrc_len; /* memory/io resource length */ | 133 | u64 rsrc_len; /* memory/io resource length */ |