pinctrl: imx: fix initialization of imx_pinctrl_desc
authorPeng Fan <van.freenix@gmail.com>
Wed, 18 May 2016 09:31:59 +0000 (17:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 May 2016 08:54:31 +0000 (10:54 +0200)
commit6e408ed8be0e65d869af4525b53e363b83c9b739
treec4820b751a129530521db544856bfd9605a454af
parenta454c67d1f4f37d69e966992c1fe6ba957e07cbb
pinctrl: imx: fix initialization of imx_pinctrl_desc

To i.MX7D, there are two iomux controllers, iomuxc and iomuxc_lpsr.
They should not share one pin controller descriptor, otherwise
the value filled into imx_pinctrl_desc when probing the first
iomux controller will be overridden when probing the second one.

In this patch, discard the static allcoated imx_pinctrl_desc and
switch to dynamically allcate pin controller descriptor for each
iomux controller.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Stefan Agner <stefan@agner.ch>
Cc: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c