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/hcd.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/hcd.c')
-rw-r--r-- | drivers/usb/core/hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 07f7bedf4dc..f7bfd72ef11 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c | |||
@@ -900,14 +900,14 @@ static int register_root_hub(struct usb_hcd *hcd) | |||
900 | if (retval != sizeof usb_dev->descriptor) { | 900 | if (retval != sizeof usb_dev->descriptor) { |
901 | mutex_unlock(&usb_bus_list_lock); | 901 | mutex_unlock(&usb_bus_list_lock); |
902 | dev_dbg (parent_dev, "can't read %s device descriptor %d\n", | 902 | dev_dbg (parent_dev, "can't read %s device descriptor %d\n", |
903 | usb_dev->dev.bus_id, retval); | 903 | dev_name(&usb_dev->dev), retval); |
904 | return (retval < 0) ? retval : -EMSGSIZE; | 904 | return (retval < 0) ? retval : -EMSGSIZE; |
905 | } | 905 | } |
906 | 906 | ||
907 | retval = usb_new_device (usb_dev); | 907 | retval = usb_new_device (usb_dev); |
908 | if (retval) { | 908 | if (retval) { |
909 | dev_err (parent_dev, "can't register root hub for %s, %d\n", | 909 | dev_err (parent_dev, "can't register root hub for %s, %d\n", |
910 | usb_dev->dev.bus_id, retval); | 910 | dev_name(&usb_dev->dev), retval); |
911 | } | 911 | } |
912 | mutex_unlock(&usb_bus_list_lock); | 912 | mutex_unlock(&usb_bus_list_lock); |
913 | 913 | ||