usb: dwc3: Fix dwc3 device name for MSM platfrom
Since the change "usb: dwc3: fetch mode of operation from HW"
the dwc3/core.c driver is not using id_table anymore in order
to specify which devices this driver support.
Therefore, for the device<->driver attachment to succeed
on MSM platform we need to allocate a device with the same
driver name as of dwc3/core.c
Change-Id: Ic709a6c33dd482b7c085ebf4b60914558d32271b
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c
index 81ce143..844b9c9 100644
--- a/drivers/usb/dwc3/dwc3-msm.c
+++ b/drivers/usb/dwc3/dwc3-msm.c
@@ -1115,7 +1115,7 @@
goto disable_hs_ldo;
}
- dwc3 = platform_device_alloc("dwc3-msm", -1);
+ dwc3 = platform_device_alloc("dwc3", -1);
if (!dwc3) {
dev_err(&pdev->dev, "couldn't allocate dwc3 device\n");
ret = -ENODEV;