diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-07 01:52:53 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 09:59:52 -0800 |
commit | 427c4f333474f5447f62387c1fb060e586c1a781 (patch) | |
tree | 04aada64f2a30eea745a9f2d083a56680e5041d4 /drivers/usb/musb/musb_gadget.c | |
parent | 796bcae7361c28cf825780f6f1aac9dd3411394e (diff) | |
download | lwn-427c4f333474f5447f62387c1fb060e586c1a781.tar.gz lwn-427c4f333474f5447f62387c1fb060e586c1a781.zip |
usb: struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index d6a802c224fa..6197daeab8f9 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1633,7 +1633,7 @@ int __init musb_gadget_setup(struct musb *musb) musb->g.speed = USB_SPEED_UNKNOWN; /* this "gadget" abstracts/virtualizes the controller */ - strcpy(musb->g.dev.bus_id, "gadget"); + dev_set_name(&musb->g.dev, "gadget"); musb->g.dev.parent = musb->controller; musb->g.dev.dma_mask = musb->controller->dma_mask; musb->g.dev.release = musb_gadget_release; |