aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/driver.c')
-rw-r--r--drivers/usb/core/driver.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index 6056db7af410..88dde95b6795 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -32,8 +32,6 @@
32#include "usb.h" 32#include "usb.h"
33 33
34 34
35#ifdef CONFIG_HOTPLUG
36
37/* 35/*
38 * Adds a new dynamic USBdevice ID to this driver, 36 * Adds a new dynamic USBdevice ID to this driver,
39 * and cause the driver to probe for all devices again. 37 * and cause the driver to probe for all devices again.
@@ -194,20 +192,6 @@ static void usb_free_dynids(struct usb_driver *usb_drv)
194 } 192 }
195 spin_unlock(&usb_drv->dynids.lock); 193 spin_unlock(&usb_drv->dynids.lock);
196} 194}
197#else
198static inline int usb_create_newid_files(struct usb_driver *usb_drv)
199{
200 return 0;
201}
202
203static void usb_remove_newid_files(struct usb_driver *usb_drv)
204{
205}
206
207static inline void usb_free_dynids(struct usb_driver *usb_drv)
208{
209}
210#endif
211 195
212static const struct usb_device_id *usb_match_dynamic_id(struct usb_interface *intf, 196static const struct usb_device_id *usb_match_dynamic_id(struct usb_interface *intf,
213 struct usb_driver *drv) 197 struct usb_driver *drv)
@@ -790,7 +774,6 @@ static int usb_device_match(struct device *dev, struct device_driver *drv)
790 return 0; 774 return 0;
791} 775}
792 776
793#ifdef CONFIG_HOTPLUG
794static int usb_uevent(struct device *dev, struct kobj_uevent_env *env) 777static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
795{ 778{
796 struct usb_device *usb_dev; 779 struct usb_device *usb_dev;
@@ -832,14 +815,6 @@ static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
832 return 0; 815 return 0;
833} 816}
834 817
835#else
836
837static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
838{
839 return -ENODEV;
840}
841#endif /* CONFIG_HOTPLUG */
842
843/** 818/**
844 * usb_register_device_driver - register a USB device (not interface) driver 819 * usb_register_device_driver - register a USB device (not interface) driver
845 * @new_udriver: USB operations for the device driver 820 * @new_udriver: USB operations for the device driver