]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ARM: imx: call imx6sx_cpuidle_init() conditionally for 6sll
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Jul 2018 15:51:17 +0000 (17:51 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Jul 2018 13:05:20 +0000 (21:05 +0800)
commitbc0ebbd5b5c14cd8d85ba671d725fb439741afa2
tree7b8d40365ceec3027056630be1aae43c1af7d79e
parent9a189f25ff27f8984bb6c297cbbd557ee983e155
ARM: imx: call imx6sx_cpuidle_init() conditionally for 6sll

The imx6sl platform has two different cpuidle implementations,
and fails to link if we only want one of the two:

arch/arm/mach-imx/mach-imx6sl.o: In function `imx6sl_init_late':
mach-imx6sl.c:(.init.text+0x12): undefined reference to `imx6sx_cpuidle_init'

This makes the call into reference conditional on the configuration.

Fixes: e7fa1fb39b11 ("ARM: imx: add cpu idle support for i.MX6SLL")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx6sl.c