提交 c682b170 编写于 作者: K Kay Sievers 提交者: Greg Kroah-Hartman

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

Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 14ab309d
...@@ -1474,7 +1474,7 @@ static struct at91_udc controller = { ...@@ -1474,7 +1474,7 @@ static struct at91_udc controller = {
.ep0 = &controller.ep[0].ep, .ep0 = &controller.ep[0].ep,
.name = driver_name, .name = driver_name,
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
.release = nop_release, .release = nop_release,
} }
}, },
......
...@@ -1034,7 +1034,7 @@ static struct usba_udc the_udc = { ...@@ -1034,7 +1034,7 @@ static struct usba_udc the_udc = {
.is_dualspeed = 1, .is_dualspeed = 1,
.name = "atmel_usba_udc", .name = "atmel_usba_udc",
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
.release = nop_release, .release = nop_release,
}, },
}, },
......
...@@ -2545,7 +2545,7 @@ static int __devinit qe_udc_probe(struct of_device *ofdev, ...@@ -2545,7 +2545,7 @@ static int __devinit qe_udc_probe(struct of_device *ofdev,
device_initialize(&udc_controller->gadget.dev); device_initialize(&udc_controller->gadget.dev);
strcpy(udc_controller->gadget.dev.bus_id, "gadget"); dev_set_name(&udc_controller->gadget.dev, "gadget");
udc_controller->gadget.dev.release = qe_udc_release; udc_controller->gadget.dev.release = qe_udc_release;
udc_controller->gadget.dev.parent = &ofdev->dev; udc_controller->gadget.dev.parent = &ofdev->dev;
......
...@@ -1981,7 +1981,7 @@ static struct lh7a40x_udc memory = { ...@@ -1981,7 +1981,7 @@ static struct lh7a40x_udc memory = {
.ep0 = &memory.ep[0].ep, .ep0 = &memory.ep[0].ep,
.name = driver_name, .name = driver_name,
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
.release = nop_release, .release = nop_release,
}, },
}, },
......
...@@ -1833,7 +1833,7 @@ static struct pxa25x_udc memory = { ...@@ -1833,7 +1833,7 @@ static struct pxa25x_udc memory = {
.ep0 = &memory.ep[0].ep, .ep0 = &memory.ep[0].ep,
.name = driver_name, .name = driver_name,
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
.release = nop_release, .release = nop_release,
}, },
}, },
......
...@@ -2162,7 +2162,7 @@ static struct pxa_udc memory = { ...@@ -2162,7 +2162,7 @@ static struct pxa_udc memory = {
.ep0 = &memory.udc_usb_ep[0].usb_ep, .ep0 = &memory.udc_usb_ep[0].usb_ep,
.name = driver_name, .name = driver_name,
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
}, },
}, },
......
...@@ -1727,7 +1727,7 @@ static struct s3c2410_udc memory = { ...@@ -1727,7 +1727,7 @@ static struct s3c2410_udc memory = {
.ep0 = &memory.ep[0].ep, .ep0 = &memory.ep[0].ep,
.name = gadget_name, .name = gadget_name,
.dev = { .dev = {
.bus_id = "gadget", .init_name = "gadget",
}, },
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册