|
@@ -1641,7 +1641,13 @@ free_interfaces:
|
|
intf->dev.bus_id, ret);
|
|
intf->dev.bus_id, ret);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
- usb_create_sysfs_intf_files (intf);
|
|
|
|
|
|
+
|
|
|
|
+ /* The driver's probe method can call usb_set_interface(),
|
|
|
|
+ * which would mean the interface's sysfs files are already
|
|
|
|
+ * created. Just in case, we'll remove them first.
|
|
|
|
+ */
|
|
|
|
+ usb_remove_sysfs_intf_files(intf);
|
|
|
|
+ usb_create_sysfs_intf_files(intf);
|
|
}
|
|
}
|
|
|
|
|
|
usb_autosuspend_device(dev);
|
|
usb_autosuspend_device(dev);
|