diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-04-19 12:14:03 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-07 15:49:51 -0400 |
commit | d35812368a590ebe1a5c92199a1a57ce3e80722e (patch) | |
tree | c1ff594293463470564010fd57e7cbbd03bb35a0 /drivers/reset | |
parent | 5ccc2c21307e186722ca9966bad0e03189c237c5 (diff) | |
download | u-boot-d35812368a590ebe1a5c92199a1a57ce3e80722e.tar.gz |
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/reset')
-rw-r--r-- | drivers/reset/reset-meson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index ef0d043afb..92f04695ec 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -76,7 +76,7 @@ static int meson_reset_probe(struct udevice *dev) { struct meson_reset_priv *priv = dev_get_priv(dev); - return regmap_init_mem(dev, &priv->regmap); + return regmap_init_mem(dev_ofnode(dev), &priv->regmap); } U_BOOT_DRIVER(meson_reset) = { |