pinctrl: sunxi: Fix recursive dependency
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 May 2014 14:47:12 +0000 (16:47 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 May 2014 22:35:16 +0000 (00:35 +0200)
commit118c565a8f2e0a1857715b8f6a6cfd337f19e904
treebcde12160a632ef325c818dd9f88562bcf9cd9a9
parent48b6bce352891a66ddbda826c46536aaaf16d618
pinctrl: sunxi: Fix recursive dependency

Fix the following configuration error:
drivers/pinctrl/sunxi/Kconfig:3:error: recursive dependency detected!
drivers/pinctrl/sunxi/Kconfig:3: symbol PINCTRL_SUNXI is selected by PINCTRL_SUN4I_A10
drivers/pinctrl/sunxi/Kconfig:9: symbol PINCTRL_SUN4I_A10 default value contains PINCTRL_SUNXI

Add a new intermedia PINCTRL_SUNXI_COMMON, that superseeds the PINCTRL_SUNXI
one.

We still need to keep PINCTRL_SUNXI at the moment in order to preserve
bisectability. Indeed, during that merge window, we also introduced the
MACH_SUN* symbols. Since it's going through different trees, we can't rely on
the fact that the options will be there, while ARCH_SUNXI still select
PINCTRL_SUNXI.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/Kconfig
drivers/pinctrl/sunxi/Makefile