usb-core: remove CONFIG_HOTPLUG ifdefs
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / usb / core / usb.c
index 7d3de09a82e4ae70a51173dbacbb7fe81e07fadb..f81b92572735449b53e5c464ca12d38b314e1029 100644 (file)
@@ -233,7 +233,6 @@ static void usb_release_dev(struct device *dev)
        kfree(udev);
 }
 
-#ifdef CONFIG_HOTPLUG
 static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
 {
        struct usb_device *usb_dev;
@@ -249,14 +248,6 @@ static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
        return 0;
 }
 
-#else
-
-static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
-{
-       return -ENODEV;
-}
-#endif /* CONFIG_HOTPLUG */
-
 #ifdef CONFIG_PM
 
 /* USB device Power-Management thunks.