]> err.no Git - linux-2.6/blobdiff - drivers/usb/host/sl811-hcd.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
[linux-2.6] / drivers / usb / host / sl811-hcd.c
index 515152809d3799deb1678aa08bc9c1e3c9a5e3c5..59be276ccd9dc112b883e8954734d74936e78f14 100644 (file)
@@ -436,9 +436,8 @@ static void finish_request(
                ep->nextpid = USB_PID_SETUP;
 
        usb_hcd_unlink_urb_from_ep(sl811_to_hcd(sl811), urb);
-       urb->status = status;
        spin_unlock(&sl811->lock);
-       usb_hcd_giveback_urb(sl811_to_hcd(sl811), urb);
+       usb_hcd_giveback_urb(sl811_to_hcd(sl811), urb, status);
        spin_lock(&sl811->lock);
 
        /* leave active endpoints in the schedule */
@@ -1557,7 +1556,7 @@ sl811h_start(struct usb_hcd *hcd)
                hcd->power_budget = sl811->board->power * 2;
        }
 
-       /* enable power and interupts */
+       /* enable power and interrupts */
        port_power(sl811, 1);
 
        return 0;
@@ -1767,6 +1766,7 @@ sl811h_suspend(struct platform_device *dev, pm_message_t state)
                retval = sl811h_bus_suspend(hcd);
                break;
        case PM_EVENT_SUSPEND:
+       case PM_EVENT_HIBERNATE:
        case PM_EVENT_PRETHAW:          /* explicitly discard hw state */
                port_power(sl811, 0);
                break;