summaryrefslogtreecommitdiffstats
path: root/drivers/ram/rockchip/dmc-rk3368.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-04-19 12:14:03 +0900
committerTom Rini <trini@konsulko.com>2018-05-07 15:49:51 -0400
commitd35812368a590ebe1a5c92199a1a57ce3e80722e (patch)
treec1ff594293463470564010fd57e7cbbd03bb35a0 /drivers/ram/rockchip/dmc-rk3368.c
parent5ccc2c21307e186722ca9966bad0e03189c237c5 (diff)
downloadu-boot-d35812368a590ebe1a5c92199a1a57ce3e80722e.tar.gz
u-boot-d35812368a590ebe1a5c92199a1a57ce3e80722e.tar.xz
u-boot-d35812368a590ebe1a5c92199a1a57ce3e80722e.zip
regmap: change regmap_init_mem() to take ofnode instead udevice
Currently, regmap_init_mem() takes a udevice. This requires the node has already been associated with a device. It prevents syscon/regmap from behaving like those in Linux. Change the first argumenet to take a device node. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org>
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