usb-core: remove CONFIG_HOTPLUG ifdefs
Remove conditional code based on CONFIG_HOTPLUG being false. It's always on now in preparation of it going away as an option. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
d3cec81fc9
commit
2bd6a021e8
@@ -121,7 +121,6 @@ static int usb_serial_device_remove(struct device *dev)
|
||||
return retval;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
static ssize_t store_new_id(struct device_driver *driver,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
@@ -159,15 +158,6 @@ static void free_dynids(struct usb_serial_driver *drv)
|
||||
spin_unlock(&drv->dynids.lock);
|
||||
}
|
||||
|
||||
#else
|
||||
static struct driver_attribute drv_attrs[] = {
|
||||
__ATTR_NULL,
|
||||
};
|
||||
static inline void free_dynids(struct usb_serial_driver *drv)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
struct bus_type usb_serial_bus_type = {
|
||||
.name = "usb-serial",
|
||||
.match = usb_serial_device_match,
|
||||
|
Reference in New Issue
Block a user