diff options
author | Marek Vasut | 2023-02-28 07:27:51 +0100 |
---|---|---|
committer | Marek Vasut | 2023-03-18 12:02:38 +0100 |
commit | 7fe9d7d1ba2a8bda472777401e0edc27ffd48982 (patch) | |
tree | 7386064b90eca69aa432a97518753127e59ef7f6 | |
parent | 33c3ec22d4d96336d4c0ad9f5e8183a3f3680bfd (diff) |
ARM: rmobile: Convert ifdef in rmobile_get_prr() to IS_ENABLED()
Switch ifdef in rmobile_get_prr() to IS_ENABLED() macro.
The CONFIG_RCAR_GEN3 will never have SPL counterpart, so
the IS_ENABLED() macro is the right one here. No functional
change, except for improved build test coverage.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
-rw-r--r-- | arch/arm/mach-rmobile/cpu_info-rcar.c | 7 |
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) |