pinctrl: sunxi: Fix multiple registration issue
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 May 2014 14:25:27 +0000 (16:25 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 May 2014 22:36:27 +0000 (00:36 +0200)
commitba6764d57d9f0b7d0db6b8233f018d10244e36a8
treefa0f1419aee7e7a879cf7596eb44129907da1a36
parent118c565a8f2e0a1857715b8f6a6cfd337f19e904
pinctrl: sunxi: Fix multiple registration issue

When the support for the PRCM muxer on the A31 has been added, the global
static pinctl_desc definition has been left as is. Unfortunately, this
structure is used to register the pinctrl device, and prior to this
registration, we set the name and pins field.

Since this structure is shared across instances, that means that the latest
registered pinctrl device wins in setting the name, pins and pins numbers,
which is not really a good thing.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c