staging: octeon-usb: don't poll interrupts early
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 22 Mar 2015 15:37:54 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Mar 2015 12:47:12 +0000 (13:47 +0100)
Don't poll interrupts before we have registered the HCD.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon-usb/octeon-hcd.c

index 8a185ff7e932979f5280ee6ec91648fd79134ccc..1f501ff34a6288429b166f6fc4af452592f0d692 100644 (file)
@@ -3712,10 +3712,6 @@ static int octeon_usb_probe(struct platform_device *pdev)
        /* This delay is needed for CN3010, but I don't know why... */
        mdelay(10);
 
-       spin_lock_irqsave(&priv->lock, flags);
-       cvmx_usb_poll(&priv->usb);
-       spin_unlock_irqrestore(&priv->lock, flags);
-
        status = usb_add_hcd(hcd, irq, 0);
        if (status) {
                dev_dbg(dev, "USB add HCD failed with %d\n", status);