Commit e8c74397 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Merge kroah.com:/home/greg/linux/BK/gregkh-2.5

into kroah.com:/home/greg/linux/BK/work-2.5
parents 4282d4f2 dc7b9e49
...@@ -1899,11 +1899,12 @@ void usb_disconnect(struct usb_device **pdev) ...@@ -1899,11 +1899,12 @@ void usb_disconnect(struct usb_device **pdev)
down(&driver->serialize); down(&driver->serialize);
driver->disconnect(dev, interface->private_data); driver->disconnect(dev, interface->private_data);
up(&driver->serialize); up(&driver->serialize);
if (driver->owner)
__MOD_DEC_USE_COUNT(driver->owner);
/* if driver->disconnect didn't release the interface */ /* if driver->disconnect didn't release the interface */
if (interface->driver) if (interface->driver)
usb_driver_release_interface(driver, interface); usb_driver_release_interface(driver, interface);
/* we don't need the driver any longer */
if (driver->owner)
__MOD_DEC_USE_COUNT(driver->owner);
} }
/* remove our device node for this interface */ /* remove our device node for this interface */
put_device(&interface->dev); put_device(&interface->dev);
......
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