aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r--drivers/usb/core/usb.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 7d3de09a82e..f81b9257273 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -233,7 +233,6 @@ static void usb_release_dev(struct device *dev)
233 kfree(udev); 233 kfree(udev);
234} 234}
235 235
236#ifdef CONFIG_HOTPLUG
237static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env) 236static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
238{ 237{
239 struct usb_device *usb_dev; 238 struct usb_device *usb_dev;
@@ -249,14 +248,6 @@ static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
249 return 0; 248 return 0;
250} 249}
251 250
252#else
253
254static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env)
255{
256 return -ENODEV;
257}
258#endif /* CONFIG_HOTPLUG */
259
260#ifdef CONFIG_PM 251#ifdef CONFIG_PM
261 252
262/* USB device Power-Management thunks. 253/* USB device Power-Management thunks.