]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32f1f346efe8a6e3e23b15600dee791c2dbef420
tree7290c5824625d0c734171824fd00d0d473027d15
parente4330a6f69652290d9bcd5dd19ec5552addc6025
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>
drivers/usb/isp1760/isp1760-if.c