From: Tony Lindgren Date: Wed, 3 Sep 2008 23:50:03 +0000 (-0700) Subject: Use dev_set_name for omap_udc X-Git-Tag: v2.6.27-omap1~283 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b3f16ee00db9ec6b2ad53fc83fa913b42d3841be;p=linux-2.6-omap-h63xx.git Use dev_set_name for omap_udc Use dev_set_name for omap_udc like mainline kernel is already doing. Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 4596154398d..3d811939108 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c @@ -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)