usb: xhci: Fix panic if disconnect
[pandora-kernel.git] / drivers / usb / host / ehci-s5p.c
index 9e77f1c..024b65c 100644 (file)
@@ -136,7 +136,7 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev)
        /* cache this readonly data; minimize chip reads */
        ehci->hcs_params = readl(&ehci->caps->hcs_params);
 
-       err = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED);
+       err = usb_add_hcd(hcd, irq, IRQF_SHARED);
        if (err) {
                dev_err(&pdev->dev, "Failed to add USB HCD\n");
                goto fail;
@@ -270,7 +270,7 @@ static int s5p_ehci_resume(struct device *dev)
        /* here we "know" root ports should always stay powered */
        ehci_port_power(ehci, 1);
 
-       hcd->state = HC_STATE_SUSPENDED;
+       ehci->rh_state = EHCI_RH_SUSPENDED;
 
        return 0;
 }