]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Use dev_set_name for omap_udc
authorTony Lindgren <tony@atomide.com>
Wed, 3 Sep 2008 23:50:03 +0000 (16:50 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 3 Sep 2008 23:50:03 +0000 (16:50 -0700)
Use dev_set_name for omap_udc like mainline kernel is already doing.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/gadget/omap_udc.c

index 4596154398d7c7ef087c51d68f703343c6dc0fe6..3d8119391083ba106bb4171c0ba5bff76a8c7c87 100644 (file)
@@ -2696,7 +2696,7 @@ omap_udc_setup(struct platform_device *odev, struct otg_transceiver *xceiv)
        udc->gadget.name = driver_name;
 
        device_initialize(&udc->gadget.dev);
-       strcpy (udc->gadget.dev.bus_id, "gadget");
+       dev_set_name(&udc->gadget.dev, "gadget");
        udc->gadget.dev.release = omap_udc_release;
        udc->gadget.dev.parent = &odev->dev;
        if (use_dma)