diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-02 00:02:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 18:15:46 -0400 |
commit | 7071a3ce0ca058ad2a9e3e8c33f30fb0bce62005 (patch) | |
tree | 6e269adae8630b505a69efd0b8351440ef6b69b8 /drivers/usb/core/message.c | |
parent | 36aa81172edba8a3a8ecedbd1f56d41774ce2e08 (diff) |
USB: usb dev_name() instead of dev->bus_id
The bus_id field is going away, use the dev_name() function instead.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/message.c')
-rw-r--r-- | drivers/usb/core/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index fe47d145255..1141a4918e8 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c | |||
@@ -1090,7 +1090,7 @@ void usb_disable_device(struct usb_device *dev, int skip_ep0) | |||
1090 | if (!device_is_registered(&interface->dev)) | 1090 | if (!device_is_registered(&interface->dev)) |
1091 | continue; | 1091 | continue; |
1092 | dev_dbg(&dev->dev, "unregistering interface %s\n", | 1092 | dev_dbg(&dev->dev, "unregistering interface %s\n", |
1093 | interface->dev.bus_id); | 1093 | dev_name(&interface->dev)); |
1094 | device_del(&interface->dev); | 1094 | device_del(&interface->dev); |
1095 | usb_remove_sysfs_intf_files(interface); | 1095 | usb_remove_sysfs_intf_files(interface); |
1096 | } | 1096 | } |
@@ -1631,12 +1631,12 @@ free_interfaces: | |||
1631 | 1631 | ||
1632 | dev_dbg(&dev->dev, | 1632 | dev_dbg(&dev->dev, |
1633 | "adding %s (config #%d, interface %d)\n", | 1633 | "adding %s (config #%d, interface %d)\n", |
1634 | intf->dev.bus_id, configuration, | 1634 | dev_name(&intf->dev), configuration, |
1635 | intf->cur_altsetting->desc.bInterfaceNumber); | 1635 | intf->cur_altsetting->desc.bInterfaceNumber); |
1636 | ret = device_add(&intf->dev); | 1636 | ret = device_add(&intf->dev); |
1637 | if (ret != 0) { | 1637 | if (ret != 0) { |
1638 | dev_err(&dev->dev, "device_add(%s) --> %d\n", | 1638 | dev_err(&dev->dev, "device_add(%s) --> %d\n", |
1639 | intf->dev.bus_id, ret); | 1639 | dev_name(&intf->dev), ret); |
1640 | continue; | 1640 | continue; |
1641 | } | 1641 | } |
1642 | usb_create_sysfs_intf_files(intf); | 1642 | usb_create_sysfs_intf_files(intf); |