summaryrefslogtreecommitdiff
path: root/drivers/ram/rockchip/dmc-rk3368.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ram/rockchip/dmc-rk3368.c')
-rw-r--r--drivers/ram/rockchip/dmc-rk3368.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c
index 75e2e9969b..8d1b9faacc 100644
--- a/drivers/ram/rockchip/dmc-rk3368.c
+++ b/drivers/ram/rockchip/dmc-rk3368.c
@@ -877,7 +877,7 @@ static int rk3368_dmc_ofdata_to_platdata(struct udevice *dev)
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
struct rk3368_sdram_params *plat = dev_get_platdata(dev);
- ret = regmap_init_mem(dev, &plat->map);
+ ret = regmap_init_mem(dev_ofnode(dev), &plat->map);
if (ret)
return ret;
#endif