From: Vivek Gautam Date: Fri, 25 Jan 2013 11:22:02 +0000 (+0530) Subject: usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=52758bcb7c12bede2a81849dee13f1edcd44e1c1;p=deliverable%2Flinux.git usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index 56a62342884d..0fa1846eda4c 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -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;