]> git.sur5r.net Git - u-boot/blobdiff - drivers/ram/rockchip/sdram_rk3288.c
regmap: change regmap_init_mem() to take ofnode instead udevice
[u-boot] / drivers / ram / rockchip / sdram_rk3288.c
index 95efb117fc17c439327bdc485d3749b22e69f148..bb3cf48788c2d3f5d2b4ab2d118edb8257a66d30 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * (C) Copyright 2015 Google, Inc
  * Copyright 2014 Rockchip Inc.
  *
- * SPDX-License-Identifier:     GPL-2.0
- *
  * Adapted from coreboot.
  */
 
@@ -27,8 +26,6 @@
 #include <power/regulator.h>
 #include <power/rk8xx_pmic.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct chan_info {
        struct rk3288_ddr_pctl *pctl;
        struct rk3288_ddr_publ *publ;
@@ -1003,7 +1000,7 @@ static int rk3288_dmc_ofdata_to_platdata(struct udevice *dev)
 
        priv->is_veyron = !fdt_node_check_compatible(blob, 0, "google,veyron");
 #endif
-       ret = regmap_init_mem(dev, &params->map);
+       ret = regmap_init_mem(dev_ofnode(dev), &params->map);
        if (ret)
                return ret;
 #endif