summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/host.c
diff options
context:
space:
mode:
authorPeter Chen2014-11-26 06:44:34 +0100
committerGreg Kroah-Hartman2014-11-26 18:28:12 +0100
commit14b4099c074f2ddf4d84b22d370170e61b527529 (patch)
treef0194492b2bfebdd861faef0d19f75a7daac0562 /drivers/usb/chipidea/host.c
parentusb: chipidea: parameter 'mode' isn't needed for hw_device_reset (diff)
downloadkernel-qcow2-linux-14b4099c074f2ddf4d84b22d370170e61b527529.tar.gz
kernel-qcow2-linux-14b4099c074f2ddf4d84b22d370170e61b527529.tar.xz
kernel-qcow2-linux-14b4099c074f2ddf4d84b22d370170e61b527529.zip
usb: chipidea: remove duplicate dev_set_drvdata for host_start
The core driver has already done it, besides, move set driver data operation just after ci has allocated successfully in case some code (like ci_role_start) want to access this driver data. Signed-off-by: Peter Chen <peter.chen@freescale.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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c
index 48731d0bab35..c1694cff1eaf 100644
--- a/drivers/usb/chipidea/host.c
+++ b/drivers/usb/chipidea/host.c
@@ -91,7 +91,6 @@ static int host_start(struct ci_hdrc *ci)
if (!hcd)
return -ENOMEM;
- dev_set_drvdata(ci->dev, ci);
hcd->rsrc_start = ci->hw_bank.phys;
hcd->rsrc_len = ci->hw_bank.size;
hcd->regs = ci->hw_bank.abs;