]> Git Repo - J-u-boot.git/commitdiff
ARM: rmobile: Convert ifdef in rmobile_get_prr() to IS_ENABLED()
authorMarek Vasut <[email protected]>
Tue, 28 Feb 2023 06:27:51 +0000 (07:27 +0100)
committerMarek Vasut <[email protected]>
Sat, 18 Mar 2023 11:02:38 +0000 (12:02 +0100)
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 <[email protected]>
arch/arm/mach-rmobile/cpu_info-rcar.c

index 5bde24ae0e70a8d975f822d8bdb48b3750b5af7a..ac9c623eda7d208107e7b8309fcb39a1b6f3225c 100644 (file)
 
 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)
This page took 0.035631 seconds and 4 git commands to generate.