]> asedeno.scripts.mit.edu Git - linux.git/commit
psci: add CPU_IDLE dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 31 Jul 2017 08:55:00 +0000 (10:55 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 19 Jan 2018 15:15:37 +0000 (16:15 +0100)
commit95140ed16db560ef86ab4ebe1a4e9b748d098669
treeb7f3c6d4533295da1f20c4e7c5d8138c4a46b8e4
parentc5b40c315a8671da99b35ace2484d6fa11a18ab9
psci: add CPU_IDLE dependency

I ran into a build error for the psci_checker:

drivers/firmware/psci_checker.o: In function `psci_checker':
psci_checker.c:(.init.text+0x528): undefined reference to `cpuidle_devices'

As far as I can tell, this is simply a very rare combination of options,
but the problem has existed since the code was initially added.
Adding a Kconfig dependency makes it build properly.

Fixes: ea8b1c4a6019 ("drivers: psci: PSCI checker module")
Acked-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/Kconfig