diff options
author | Felipe Balbi <balbi@ti.com> | 2012-02-29 09:46:23 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-01 12:31:22 -0500 |
commit | cd70469d084fde198dc07c1a31b8463562228a5a (patch) | |
tree | 166cf8dc555922a43abb71aa681e56dc3e61c776 /drivers/usb/host/ohci-hcd.c | |
parent | 444aa7fa9bd752d19ce472d3e02558b987c3cc67 (diff) |
usb: core: hcd: make hcd->irq unsigned
There's really no point in having hcd->irq as a
signed integer when we consider the fact that
IRQ 0 means NO_IRQ. In order to avoid confusion,
make hcd->irq unsigned and fix users who were
passing -1 as the IRQ number to usb_add_hcd.
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |