diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-06-29 13:41:54 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-01 21:27:07 (GMT) |
commit | e4fe056ed3a350ec569aa25014a0982883bc03c1 (patch) | |
tree | f687114b484e9e33e12dffbac288352814bc761c /drivers/usb/gadget/ci13xxx_msm.c | |
parent | 7eca4c5a8b73f22ad16ad6e76b901351732355da (diff) | |
download | linux-fsl-qoriq-e4fe056ed3a350ec569aa25014a0982883bc03c1.tar.xz |
usb: gadget: net2272: cleanup pci_register_driver() error path
In case pci_register_driver() fails it error will be 0 in case
platform_driver_register() was fine. Also without PCI
pci_register_driver() evaluates to 1 which is well, special. If
platform_driver_register() returns EINVAL or EBUSY we end up with 0.
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/ci13xxx_msm.c')
0 files changed, 0 insertions, 0 deletions