ARM: at91: fix build for SAMA5D3 w/o L2 cache
authorPeter Rosin <peda@axentia.se>
Sat, 12 Nov 2022 15:40:59 +0000 (16:40 +0100)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 24 Nov 2022 10:50:07 +0000 (12:50 +0200)
commit6a3fc8c330d1c1fa3d8773d7d38a7c55c4900dfe
tree5c0c7689fbdedd90d1fd3057983ccc2ff88b649d
parent40a2226e8bfacb79dd154dea68febeead9d847e9
ARM: at91: fix build for SAMA5D3 w/o L2 cache

The L2 cache is present on the newer SAMA5D2 and SAMA5D4 families, but
apparently not for the older SAMA5D3.

Solves a build-time regression with the following symptom:

sama5.c:(.init.text+0x48): undefined reference to `outer_cache'

Fixes: 3b5a7ca7d252 ("ARM: at91: setup outer cache .write_sec() callback if needed")
Signed-off-by: Peter Rosin <peda@axentia.se>
[claudiu.beznea: delete "At least not always." from commit description]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/b7f8dacc-5e1f-0eb2-188e-3ad9a9f7613d@axentia.se
arch/arm/mach-at91/sama5.c