Commit 5df58524 authored by Kay Sievers's avatar Kay Sievers Committed by Greg Kroah-Hartman

usb: struct device - replace bus_id with dev_name(), dev_set_name()

Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
parent 2c0f3e96
...@@ -2626,7 +2626,7 @@ static int udc_probe(struct device *dev, void __iomem *regs, const char *name) ...@@ -2626,7 +2626,7 @@ static int udc_probe(struct device *dev, void __iomem *regs, const char *name)
INIT_LIST_HEAD(&udc->gadget.ep_list); INIT_LIST_HEAD(&udc->gadget.ep_list);
udc->gadget.ep0 = NULL; udc->gadget.ep0 = NULL;
strcpy(udc->gadget.dev.bus_id, "gadget"); dev_set_name(&udc->gadget.dev, "gadget");
udc->gadget.dev.dma_mask = dev->dma_mask; udc->gadget.dev.dma_mask = dev->dma_mask;
udc->gadget.dev.parent = dev; udc->gadget.dev.parent = dev;
udc->gadget.dev.release = udc_release; udc->gadget.dev.release = udc_release;
......
...@@ -1186,7 +1186,7 @@ static struct imx_udc_struct controller = { ...@@ -1186,7 +1186,7 @@ static struct imx_udc_struct controller = {
.ep0 = &controller.imx_ep[0].ep, .ep0 = &controller.imx_ep[0].ep,
.name = driver_name, .name = driver_name,
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
}, },
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment