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

USB: allow /sbin/hotplug to be called for the main USB device.

parent 0dfd9af4
......@@ -525,9 +525,8 @@ static int usb_hotplug (struct device *dev, char **envp, int num_envp,
if (!dev)
return -ENODEV;
/* check for generic driver, we do not call do hotplug calls for it */
if (dev->driver == &usb_generic_driver)
return -ENODEV;
return 0;
intf = to_usb_interface(dev);
if (!intf)
......
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