提交 1f8d9b9b 编写于 作者: L Laurent Pinchart 提交者: Felipe Balbi

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: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 100832ab
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册