usb: ehci: fsl: use bus->sysdev for DMA configuration
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Mar 2017 02:18:43 +0000 (10:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 07:20:21 +0000 (08:20 +0100)
For the dual role ehci fsl driver, sysdev will handle the dma
config.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-fsl.c

index 3733aab46efece4fada516c9a590ed8050a467d1..4a08b70c81aa8f31b7baa1c1ea122416448a6c03 100644 (file)
@@ -96,8 +96,8 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev)
        }
        irq = res->start;
 
-       hcd = usb_create_hcd(&fsl_ehci_hc_driver, &pdev->dev,
-                               dev_name(&pdev->dev));
+       hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent,
+                              &pdev->dev, dev_name(&pdev->dev), NULL);
        if (!hcd) {
                retval = -ENOMEM;
                goto err1;