usb: ehci-platform: Fix using multiple controllers from OF
authorAlban Bedel <albeu@free.fr>
Tue, 4 Aug 2015 08:59:17 +0000 (10:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:29:19 +0000 (12:29 -0700)
commitb4629a7bdfd8fcafc90ded7e6a1f88099105842d
tree8ca3e8494f340569489bf056d1409d3466de9148
parenta2e66ad34c10b27c6e408db50e6472c2aae2b5e8
usb: ehci-platform: Fix using multiple controllers from OF

When using OF defined controllers the platform data struct is shared
between all devices, so it can't be used for device specific settings.
However it is currently used for the OF properties
needs-reset-on-resume and has-transaction-translator.

To fix this issue move setting hcd->has_tt to the probe and
move pdata->reset_on_resume to the private data.

Signed-off-by: Alban Bedel <albeu@free.fr>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-platform.c