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>
Этот коммит содержится в:

коммит произвёл
Greg Kroah-Hartman

родитель
444aa7fa9b
Коммит
cd70469d08
@@ -1987,7 +1987,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
|
||||
musb->xceiv->otg->default_a = 1;
|
||||
musb->xceiv->state = OTG_STATE_A_IDLE;
|
||||
|
||||
status = usb_add_hcd(musb_to_hcd(musb), -1, 0);
|
||||
status = usb_add_hcd(musb_to_hcd(musb), 0, 0);
|
||||
|
||||
hcd->self.uses_pio_for_control = 1;
|
||||
dev_dbg(musb->controller, "%s mode, status %d, devctl %02x %c\n",
|
||||
|
@@ -1957,7 +1957,7 @@ static int musb_gadget_start(struct usb_gadget *g,
|
||||
* handles power budgeting ... this way also
|
||||
* ensures HdrcStart is indirectly called.
|
||||
*/
|
||||
retval = usb_add_hcd(musb_to_hcd(musb), -1, 0);
|
||||
retval = usb_add_hcd(musb_to_hcd(musb), 0, 0);
|
||||
if (retval < 0) {
|
||||
dev_dbg(musb->controller, "add_hcd failed, %d\n", retval);
|
||||
goto err2;
|
||||
|
Ссылка в новой задаче
Block a user