ARM: sunxi: Have ARCH_SUNXI select RESET_CONTROLLER for clock driver usage
authorChen-Yu Tsai <wens@csie.org>
Mon, 9 Feb 2015 10:23:20 +0000 (18:23 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 23 Feb 2015 09:44:54 +0000 (10:44 +0100)
commitfdc0074c5fc8c7adb8186cbb123fe2082d9bd05f
tree12e70da9f568c63db3456952d1a30c8087d2dc59
parentc517d838eb7d07bbe9507871fab3931deccff539
ARM: sunxi: Have ARCH_SUNXI select RESET_CONTROLLER for clock driver usage

As the sunxi usb clocks all contain a reset controller, it is not
possible to build the sunxi clock driver without RESET_CONTROLLER
enabled. Doing so results in an undefined symbol error:

    drivers/built-in.o: In function `sunxi_gates_clk_setup':
    linux/drivers/clk/sunxi/clk-sunxi.c:1071: undefined reference to
`reset_controller_register'

This is possible if building a minimal kernel without PHY_SUN4I_USB.

The dependency issue is made visible at compile time instead of
link time by the new A80 mmc clocks, which also use a reset control
itself.

This patch makes ARCH_SUNXI select ARCH_HAS_RESET_CONTROLLER and
RESET_CONTROLLER.

Fixes: 559482d1f950 ARM: sunxi: Split the various SoCs support in Kconfig
Cc: <stable@vger.kernel.org> # 3.16+
Reported-by: Lourens Rozema <ik@lourensrozema.nl>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/mach-sunxi/Kconfig
This page took 0.030639 seconds and 5 git commands to generate.