usb: chipidea: allow multiple instances to use default ci_default_pdata
authorRob Herring <robh@kernel.org>
Fri, 29 May 2015 16:38:45 +0000 (11:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jun 2015 19:20:30 +0000 (12:20 -0700)
commitd95699be183c03bb804c1dfdbbeaba7ee1ed8a0d
tree9e3da44127fc6c5eb8b9d5198541b8a9af5cb5db
parent9d062b9b416857873bb149e18fbb4230d202d0e8
usb: chipidea: allow multiple instances to use default ci_default_pdata

Currently, ci_default_pdata is common to all instances of the driver and
gets modified by the core driver code. This is bad if there are multiple
instances of the device with different settings such as the phy type. Fix
this by making a copy of the default platform_data.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Peter Chen <Peter.Chen@freescale.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_usb2.c