usb: isp1760: Remove duplicate usb_disabled() check
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 20 Jan 2015 22:56:04 +0000 (00:56 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 15:39:47 +0000 (09:39 -0600)
Both isp1760_register() and isp1761_pci_probe() check whether USB is
disabled by calling usb_disabled(), and bail out with an error if it is.
One check is enough, remove the PCI-specific check.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/isp1760/isp1760-if.c

index c2a94c966350d81ee4c7bbae32e3883c73a96bc0..264be4d217060bc1c769aa49ae641e69c8d33d2c 100644 (file)
@@ -126,9 +126,6 @@ static int isp1761_pci_probe(struct pci_dev *dev,
        unsigned int devflags = 0;
        int ret;
 
-       if (usb_disabled())
-               return -ENODEV;
-
        if (!dev->irq)
                return -ENODEV;