ARM: rockchip: make rockchip_suspend_init conditional
authorArnd Bergmann <arnd@arndb.de>
Tue, 27 Jan 2015 20:26:36 +0000 (21:26 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Feb 2015 11:20:28 +0000 (12:20 +0100)
commitc8823e7a9ef1454a571f4e2052b73526c1d617f6
treec511dd13f31410e5fa0c29ddb4ec200749e8c13f
parent1aeb3c5c48bebf0bb608c861612c76bdcd0205e6
ARM: rockchip: make rockchip_suspend_init conditional

If CONFIG_PM_SLEEP is disabled, we get a build error for rockchips:

arch/arm/mach-rockchip/built-in.o: In function `rockchip_dt_init':
:(.init.text+0x1c): undefined reference to `rockchip_suspend_init'

This adds an inline alternative for that case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
arch/arm/mach-rockchip/pm.h