summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/host.c
diff options
context:
space:
mode:
authorArnd Bergmann2017-03-13 03:18:42 +0100
committerGreg Kroah-Hartman2017-03-23 08:20:21 +0100
commitaeb78cda51005fa00943e331c1fb47c6ad74015d (patch)
treea97c366cf5c3a9de5e0e322909617744bfc31701 /drivers/usb/chipidea/host.c
parentusb: separate out sysdev pointer from usb_bus (diff)
downloadkernel-qcow2-linux-aeb78cda51005fa00943e331c1fb47c6ad74015d.tar.gz
kernel-qcow2-linux-aeb78cda51005fa00943e331c1fb47c6ad74015d.tar.xz
kernel-qcow2-linux-aeb78cda51005fa00943e331c1fb47c6ad74015d.zip
usb: chipidea: use bus->sysdev for DMA configuration
Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sriram Dash <sriram.dash@nxp.com> Acked-by: Peter Chen <peter.chen@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>
Diffstat (limited to 'drivers/usb/chipidea/host.c')
-rw-r--r--drivers/usb/chipidea/host.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c
index 915f3e91586e..18cb8e46262d 100644
--- a/drivers/usb/chipidea/host.c
+++ b/drivers/usb/chipidea/host.c
@@ -123,7 +123,8 @@ static int host_start(struct ci_hdrc *ci)
if (usb_disabled())
return -ENODEV;
- hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev));
+ hcd = __usb_create_hcd(&ci_ehci_hc_driver, ci->dev->parent,
+ ci->dev, dev_name(ci->dev), NULL);
if (!hcd)
return -ENOMEM;