of: clean up OF_CONTROL ifdef conditionals
[oweals/u-boot.git] / arch / arm / mach-tegra / tegra20 / clock.c
index dea459b164be4c3ada7f7d4caa742cb1fb1261ad..cd9fb9a55340ffa5b29a0633a2b248243fa1b08a 100644 (file)
@@ -507,7 +507,7 @@ void reset_set_enable(enum periph_id periph_id, int enable)
        writel(reg, reset);
 }
 
-#ifdef CONFIG_OF_CONTROL
+#if CONFIG_IS_ENABLED(OF_CONTROL)
 /*
  * Convert a device tree clock ID to our peripheral ID. They are mostly
  * the same but we are very cautious so we check that a valid clock ID is
@@ -542,7 +542,7 @@ enum periph_id clk_id_to_periph_id(int clk_id)
                return clk_id;
        }
 }
-#endif /* CONFIG_OF_CONTROL */
+#endif /* CONFIG_IS_ENABLED(OF_CONTROL) */
 
 void clock_early_init(void)
 {