]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: omap2: fix am43xx build without L2X0
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Apr 2018 10:25:36 +0000 (12:25 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 5 Apr 2018 09:06:41 +0000 (11:06 +0200)
commitcf323dafec9c578ea8aca6d8b3d91a813040270c
treefccb9bf26374623160090c822fecdf00da9ac082
parentdf546ef2cff8bbe3a06b1e165659f392ca487afd
ARM: omap2: fix am43xx build without L2X0

When CONFIG_CACHE_L2X0 is disabled, the am43xx specific suspend
implemnentation fails to link:

arch/arm/mach-omap2/sleep43xx.o: In function `get_l2cache_base':
(.text+0x180): undefined reference to `omap4_get_l2cache_base'

This adds an #ifdef protection around the code, like we do for am44xx.

Fixes: f90d498fe715 ("ARM: OMAP2+: Introduce low-level suspend code for AM43XX")
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-omap2/sleep43xx.S