diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-01-20 17:56:04 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 10:39:47 -0500 |
commit | 1f8d9b9b503070e5450f49e0a341ac3b43d9164d (patch) | |
tree | 7290c5824625d0c734171824fd00d0d473027d15 | |
parent | 100832abf065bc186ae48165c16546784b90a4be (diff) |
usb: isp1760: Remove duplicate usb_disabled() check
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>
-rw-r--r-- | drivers/usb/isp1760/isp1760-if.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index c2a94c966350..264be4d21706 100644 --- a/drivers/usb/isp1760/isp1760-if.c +++ b/drivers/usb/isp1760/isp1760-if.c | |||
@@ -126,9 +126,6 @@ static int isp1761_pci_probe(struct pci_dev *dev, | |||
126 | unsigned int devflags = 0; | 126 | unsigned int devflags = 0; |
127 | int ret; | 127 | int ret; |
128 | 128 | ||
129 | if (usb_disabled()) | ||
130 | return -ENODEV; | ||
131 | |||
132 | if (!dev->irq) | 129 | if (!dev->irq) |
133 | return -ENODEV; | 130 | return -ENODEV; |
134 | 131 | ||