diff options
Diffstat (limited to 'arch/arm/mach-spear/spear13xx.c')
-rw-r--r-- | arch/arm/mach-spear/spear13xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-spear/spear13xx.c b/arch/arm/mach-spear/spear13xx.c index 3621599c38ad..7aa6e8cf830f 100644 --- a/arch/arm/mach-spear/spear13xx.c +++ b/arch/arm/mach-spear/spear13xx.c | |||
@@ -35,6 +35,8 @@ void __init spear13xx_l2x0_init(void) | |||
35 | * write alloc and 'Full line of zero' options | 35 | * write alloc and 'Full line of zero' options |
36 | * | 36 | * |
37 | */ | 37 | */ |
38 | if (!IS_ENABLED(CONFIG_CACHE_L2X0)) | ||
39 | return; | ||
38 | 40 | ||
39 | writel_relaxed(0x06, VA_L2CC_BASE + L2X0_PREFETCH_CTRL); | 41 | writel_relaxed(0x06, VA_L2CC_BASE + L2X0_PREFETCH_CTRL); |
40 | 42 | ||