diff options
author | Vivek Gautam <gautam.vivek@samsung.com> | 2013-01-25 06:22:01 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-25 06:19:50 -0500 |
commit | b0e45ddb96d5a972a8b76354f036b90549ae85b3 (patch) | |
tree | 9d99dd0c9057f91bd217c847e5a0aa2db1d341a5 | |
parent | 5ea921320f0e64f07a41d35903f1d458c3a9bcd3 (diff) |
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>
-rw-r--r-- | drivers/usb/dwc3/dwc3-exynos.c | 4 | ||||
-rw-r--r-- | drivers/usb/dwc3/dwc3-omap.c | 4 |
2 files changed, 4 insertions, 4 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) | |||
42 | 42 | ||
43 | memset(&pdata, 0x00, sizeof(pdata)); | 43 | memset(&pdata, 0x00, sizeof(pdata)); |
44 | 44 | ||
45 | pdev = platform_device_alloc("nop_usb_xceiv", 0); | 45 | pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); |
46 | if (!pdev) | 46 | if (!pdev) |
47 | return -ENOMEM; | 47 | return -ENOMEM; |
48 | 48 | ||
@@ -53,7 +53,7 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) | |||
53 | if (ret) | 53 | if (ret) |
54 | goto err1; | 54 | goto err1; |
55 | 55 | ||
56 | pdev = platform_device_alloc("nop_usb_xceiv", 1); | 56 | pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); |
57 | if (!pdev) { | 57 | if (!pdev) { |
58 | ret = -ENOMEM; | 58 | ret = -ENOMEM; |
59 | goto err1; | 59 | goto err1; |
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 831b75fa4386..22f337f57219 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c | |||
@@ -203,7 +203,7 @@ static int dwc3_omap_register_phys(struct dwc3_omap *omap) | |||
203 | 203 | ||
204 | memset(&pdata, 0x00, sizeof(pdata)); | 204 | memset(&pdata, 0x00, sizeof(pdata)); |
205 | 205 | ||
206 | pdev = platform_device_alloc("nop_usb_xceiv", 0); | 206 | pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); |
207 | if (!pdev) | 207 | if (!pdev) |
208 | return -ENOMEM; | 208 | return -ENOMEM; |
209 | 209 | ||
@@ -214,7 +214,7 @@ static int dwc3_omap_register_phys(struct dwc3_omap *omap) | |||
214 | if (ret) | 214 | if (ret) |
215 | goto err1; | 215 | goto err1; |
216 | 216 | ||
217 | pdev = platform_device_alloc("nop_usb_xceiv", 1); | 217 | pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); |
218 | if (!pdev) { | 218 | if (!pdev) { |
219 | ret = -ENOMEM; | 219 | ret = -ENOMEM; |
220 | goto err1; | 220 | goto err1; |