treewide: Try to avoid the preprocessor with OF_REAL
[platform/kernel/u-boot.git] / drivers / clk / rockchip / clk_rk3288.c
index ee22221..3b29992 100644 (file)
@@ -957,11 +957,11 @@ static struct clk_ops rk3288_clk_ops = {
 
 static int rk3288_clk_of_to_plat(struct udevice *dev)
 {
-#if CONFIG_IS_ENABLED(OF_REAL)
-       struct rk3288_clk_priv *priv = dev_get_priv(dev);
+       if (CONFIG_IS_ENABLED(OF_REAL)) {
+               struct rk3288_clk_priv *priv = dev_get_priv(dev);
 
-       priv->cru = dev_read_addr_ptr(dev);
-#endif
+               priv->cru = dev_read_addr_ptr(dev);
+       }
 
        return 0;
 }