usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO
authorVivek Gautam <gautam.vivek@samsung.com>
Fri, 25 Jan 2013 11:22:02 +0000 (16:52 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 25 Jan 2013 11:19:52 +0000 (13:19 +0200)
Multiple dwc3 controllers will try to allocate multiple xhci-hcd
interfaces.
Changing platform device IDs from NONE to AUTO to support
such cases.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/host.c

index 56a6234..0fa1846 100644 (file)
@@ -44,7 +44,7 @@ int dwc3_host_init(struct dwc3 *dwc)
        struct platform_device  *xhci;
        int                     ret;
 
-       xhci = platform_device_alloc("xhci-hcd", -1);
+       xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO);
        if (!xhci) {
                dev_err(dwc->dev, "couldn't allocate xHCI device\n");
                ret = -ENOMEM;