string: factorize skip_spaces and export it to be generally available
[safe/jmp/linux-2.6] / arch / sh / mm / cache.c
index 63c1329..e9415d3 100644 (file)
@@ -277,7 +277,11 @@ static void __init emit_cache_params(void)
 
 void __init cpu_cache_init(void)
 {
-       unsigned int cache_disabled = !(__raw_readl(CCR) & CCR_CACHE_ENABLE);
+       unsigned int cache_disabled = 0;
+
+#ifdef CCR
+       cache_disabled = !(__raw_readl(CCR) & CCR_CACHE_ENABLE);
+#endif
 
        compute_alias(&boot_cpu_data.icache);
        compute_alias(&boot_cpu_data.dcache);