aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rmobile/cpu_info-rcar.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-rmobile/cpu_info-rcar.c')
-rw-r--r--arch/arm/mach-rmobile/cpu_info-rcar.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-rmobile/cpu_info-rcar.c b/arch/arm/mach-rmobile/cpu_info-rcar.c
index 5bde24ae0e7..ac9c623eda7 100644
--- a/arch/arm/mach-rmobile/cpu_info-rcar.c
+++ b/arch/arm/mach-rmobile/cpu_info-rcar.c
@@ -14,11 +14,10 @@
static u32 rmobile_get_prr(void)
{
-#ifdef CONFIG_RCAR_GEN3
- return readl(0xFFF00044);
-#else
+ if (IS_ENABLED(CONFIG_RCAR_GEN3))
+ return readl(0xFFF00044);
+
return readl(0xFF000044);
-#endif
}
u32 rmobile_get_cpu_type(void)