summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/endpoint.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-05-02 06:02:41 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 15:15:47 -0700
commit0031a06e2f07ab0d1bc98c31dbb6801f95f4bf01 (patch)
tree4b939fd3ffec09620100eeaa4e33fed373aaf2d5 /drivers/usb/core/endpoint.c
parent7071a3ce0ca058ad2a9e3e8c33f30fb0bce62005 (diff)
downloadblackbird-op-linux-0031a06e2f07ab0d1bc98c31dbb6801f95f4bf01.tar.gz
blackbird-op-linux-0031a06e2f07ab0d1bc98c31dbb6801f95f4bf01.zip
USB: usb dev_set_name() instead of dev->bus_id
The bus_id field is going away, use the dev_set_name() function to set it properly. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/endpoint.c')
-rw-r--r--drivers/usb/core/endpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/endpoint.c b/drivers/usb/core/endpoint.c
index f600aec3fb3c..22912136fc14 100644
--- a/drivers/usb/core/endpoint.c
+++ b/drivers/usb/core/endpoint.c
@@ -307,7 +307,7 @@ int usb_create_ep_files(struct device *parent,
ep_dev->dev.class = ep_class->class;
ep_dev->dev.parent = parent;
ep_dev->dev.release = ep_device_release;
- snprintf(ep_dev->dev.bus_id, BUS_ID_SIZE, "usbdev%d.%d_ep%02x",
+ dev_set_name(&ep_dev->dev, "usbdev%d.%d_ep%02x",
udev->bus->busnum, udev->devnum,
endpoint->desc.bEndpointAddress);
OpenPOWER on IntegriCloud