diff options
author | Felipe Balbi <balbi@ti.com> | 2014-10-17 20:19:02 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 10:01:19 -0600 |
commit | 7fd1f9d6663fa20997d2d951ef7ee7e2cd0d266e (patch) | |
tree | f525f89091cc47178ddc5d69fe2701780b223075 /drivers/usb/gadget/udc/net2272.c | |
parent | c77f570fe2ec9d205cdd90805dd78fcd70b860ec (diff) | |
download | op-kernel-dev-7fd1f9d6663fa20997d2d951ef7ee7e2cd0d266e.zip op-kernel-dev-7fd1f9d6663fa20997d2d951ef7ee7e2cd0d266e.tar.gz |
usb: gadget: udc: net2272: do not call usb_gadget_unregister_driver()
that call is completely unnecessary because
usb_del_gadget_udc() already makes sure the
gadget driver is properly unregistered from
the UDC.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/net2272.c')
-rw-r--r-- | drivers/usb/gadget/udc/net2272.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index 887bea4..ab3a739 100644 --- a/drivers/usb/gadget/udc/net2272.c +++ b/drivers/usb/gadget/udc/net2272.c @@ -2195,18 +2195,8 @@ static void net2272_remove(struct net2272 *dev) { usb_del_gadget_udc(&dev->gadget); - - /* start with the driver above us */ - if (dev->driver) { - /* should have been done already by driver model core */ - dev_warn(dev->dev, "pci remove, driver '%s' is still registered\n", - dev->driver->driver.name); - usb_gadget_unregister_driver(dev->driver); - } - free_irq(dev->irq, dev); iounmap(dev->base_addr); - device_remove_file(dev->dev, &dev_attr_registers); dev_info(dev->dev, "unbind\n"); |