usb: core: hcd: make hcd->irq unsigned
[deliverable/linux.git] / drivers / usb / core / hcd.c
index e1282328fc27f1ef17228ff4ad57747c79e2c927..9d7fc9a399338854426bb2a23c6990e4077b3525 100644 (file)
@@ -2352,7 +2352,7 @@ static int usb_hcd_request_irqs(struct usb_hcd *hcd,
                                        "io mem" : "io base",
                                        (unsigned long long)hcd->rsrc_start);
        } else {
-               hcd->irq = -1;
+               hcd->irq = 0;
                if (hcd->rsrc_start)
                        dev_info(hcd->self.controller, "%s 0x%08llx\n",
                                        (hcd->driver->flags & HCD_MEMORY) ?
@@ -2508,7 +2508,7 @@ err_register_root_hub:
        clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
        del_timer_sync(&hcd->rh_timer);
 err_hcd_driver_start:
-       if (usb_hcd_is_primary_hcd(hcd) && hcd->irq >= 0)
+       if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0)
                free_irq(irqnum, hcd);
 err_request_irq:
 err_hcd_driver_setup:
@@ -2573,7 +2573,7 @@ void usb_remove_hcd(struct usb_hcd *hcd)
        del_timer_sync(&hcd->rh_timer);
 
        if (usb_hcd_is_primary_hcd(hcd)) {
-               if (hcd->irq >= 0)
+               if (hcd->irq > 0)
                        free_irq(hcd->irq, hcd);
        }
 
This page took 0.024612 seconds and 5 git commands to generate.