usb: chipidea: msm: Make platform data driver local instead of global
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:57:04 +0000 (14:57 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:26:42 +0000 (15:26 +0800)
commit26f8e3a8cb81b4b8495e8e75596bc60cddf5af1e
tree24b056250c27485fc7f30e340a92850f05843ab2
parent47654a1620818ab1da1e81ce6cdb2433ff3bb6bf
usb: chipidea: msm: Make platform data driver local instead of global

If two devices are probed with this same driver, they'll share
the same platform data structure, while the chipidea core layer
writes and modifies it. This can lead to interesting results
especially if one device is an OTG type chipidea controller and
another is a host. Let's create a copy of this structure per each
device instance so that odd things don't happen.

Acked-by: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_msm.c