usb: core: hcd: make hcd->irq unsigned
commitcd70469d084fde198dc07c1a31b8463562228a5a
authorFelipe Balbi <balbi@ti.com>
Wed, 29 Feb 2012 14:46:23 +0000 (29 16:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 17:31:22 +0000 (1 09:31 -0800)
tree166cf8dc555922a43abb71aa681e56dc3e61c776
parent444aa7fa9bd752d19ce472d3e02558b987c3cc67
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>
drivers/usb/core/hcd.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_gadget.c
include/linux/usb/hcd.h