Commit 3c0405be authored by Patrick Mochel's avatar Patrick Mochel

USB: call device_unregister() instead of put_device() when removing devices.

parent 8b495a0a
......@@ -797,7 +797,7 @@ void usb_disconnect(struct usb_device **pdev)
struct usb_interface *interface = &dev->actconfig->interface[i];
/* remove this interface */
put_device(&interface->dev);
device_unregister(&interface->dev);
}
}
......@@ -805,7 +805,7 @@ void usb_disconnect(struct usb_device **pdev)
if (dev->devnum > 0) {
clear_bit(dev->devnum, dev->bus->devmap.devicemap);
usbfs_remove_device(dev);
put_device(&dev->dev);
device_unregister(&dev->dev);
}
/* Decrement the reference count, it'll auto free everything when */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment