]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
gadget: struct device - replace bus_id with dev_name(), dev_set_name()
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 6 Jan 2009 18:44:42 +0000 (10:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:42 +0000 (10:44 -0800)
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/at91_udc.c
drivers/usb/gadget/atmel_usba_udc.c
drivers/usb/gadget/fsl_qe_udc.c
drivers/usb/gadget/lh7a40x_udc.c
drivers/usb/gadget/pxa25x_udc.c
drivers/usb/gadget/pxa27x_udc.c
drivers/usb/gadget/s3c2410_udc.c

index a8a1de41332135907ab27718f07633b155dc83ef..0b2bb8f0706df6ec99a6f357a6cb58a86ca25ba6 100644 (file)
@@ -1474,7 +1474,7 @@ static struct at91_udc controller = {
                .ep0    = &controller.ep[0].ep,
                .name   = driver_name,
                .dev    = {
-                       .bus_id = "gadget",
+                       .init_name = "gadget",
                        .release = nop_release,
                }
        },
index ae30ab1d264f46c6b45aafeca88f1491781b3c42..65b03e3445a1784535098d942bb120034d7363d4 100644 (file)
@@ -1034,7 +1034,7 @@ static struct usba_udc the_udc = {
                .is_dualspeed   = 1,
                .name           = "atmel_usba_udc",
                .dev    = {
-                       .bus_id         = "gadget",
+                       .init_name      = "gadget",
                        .release        = nop_release,
                },
        },
index b3408ff39fba07d8e289a9d69f28cc2b6b296512..f402725650988e6275ac307dc0de69ecfd6324cd 100644 (file)
@@ -2545,7 +2545,7 @@ static int __devinit qe_udc_probe(struct of_device *ofdev,
 
        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.parent = &ofdev->dev;
index c6e7df04c69ac36be2e32369a7d0fdb6738d1cf3..d554b08956031c15c6bb633ec99005239d5529ce 100644 (file)
@@ -1981,7 +1981,7 @@ static struct lh7a40x_udc memory = {
                   .ep0 = &memory.ep[0].ep,
                   .name = driver_name,
                   .dev = {
-                          .bus_id = "gadget",
+                          .init_name = "gadget",
                           .release = nop_release,
                           },
                   },
index 8c5026be79d49af6253d1b45f638badd74c596b0..697a0ca349bf09b66cfadab7f87ffc1176e08b61 100644 (file)
@@ -1833,7 +1833,7 @@ static struct pxa25x_udc memory = {
                .ep0            = &memory.ep[0].ep,
                .name           = driver_name,
                .dev = {
-                       .bus_id         = "gadget",
+                       .init_name      = "gadget",
                        .release        = nop_release,
                },
        },
index 944e4ff641dfc68b814501dc5a92065593f71198..65110d02a206f958c1b8088feadcb1a25e48c3a7 100644 (file)
@@ -2162,7 +2162,7 @@ static struct pxa_udc memory = {
                .ep0            = &memory.udc_usb_ep[0].usb_ep,
                .name           = driver_name,
                .dev = {
-                       .bus_id         = "gadget",
+                       .init_name      = "gadget",
                },
        },
 
index 8d8d651659836d3a9cc5fbef228effc78e994179..c7e255636803bc0721052e01e1875b39d9463d43 100644 (file)
@@ -1727,7 +1727,7 @@ static struct s3c2410_udc memory = {
                .ep0            = &memory.ep[0].ep,
                .name           = gadget_name,
                .dev = {
-                       .bus_id         = "gadget",
+                       .init_name      = "gadget",
                },
        },