diff options
author | Vivek Gautam <gautam.vivek@samsung.com> | 2013-01-25 16:52:01 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-25 13:19:50 +0200 |
commit | b0e45ddb96d5a972a8b76354f036b90549ae85b3 (patch) | |
tree | 9d99dd0c9057f91bd217c847e5a0aa2db1d341a5 /drivers/usb/dwc3/dwc3-exynos.c | |
parent | 5ea921320f0e64f07a41d35903f1d458c3a9bcd3 (diff) | |
download | linux-b0e45ddb96d5a972a8b76354f036b90549ae85b3.tar.gz linux-b0e45ddb96d5a972a8b76354f036b90549ae85b3.tar.bz2 linux-b0e45ddb96d5a972a8b76354f036b90549ae85b3.zip |
usb: dwc3: exynos/omap: Change platform device IDs for no_op_xceive to AUTO
Multiple dwc3 probe calls try to allocate no_op_xceive platform
device. Having static IDs for these will throw sysfs error -EEXIST.
Changing these static platform device IDs to AUTO to enable
multiple dwc3 controller support on a SoC.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-exynos.c')
-rw-r--r-- | drivers/usb/dwc3/dwc3-exynos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 1e955517c6fa..b50da53e9a52 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -42,7 +42,7 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) memset(&pdata, 0x00, sizeof(pdata)); - pdev = platform_device_alloc("nop_usb_xceiv", 0); + pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); if (!pdev) return -ENOMEM; @@ -53,7 +53,7 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) if (ret) goto err1; - pdev = platform_device_alloc("nop_usb_xceiv", 1); + pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); if (!pdev) { ret = -ENOMEM; goto err1; |