regmap: change regmap_init_mem() to take ofnode instead udevice
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 19 Apr 2018 03:14:03 +0000 (12:14 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 7 May 2018 19:49:51 +0000 (15:49 -0400)
commitd35812368a590ebe1a5c92199a1a57ce3e80722e
treec1ff594293463470564010fd57e7cbbd03bb35a0
parent5ccc2c21307e186722ca9966bad0e03189c237c5
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>
13 files changed:
arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
drivers/core/regmap.c
drivers/core/syscon-uclass.c
drivers/phy/meson-gxl-usb2.c
drivers/phy/meson-gxl-usb3.c
drivers/ram/rockchip/dmc-rk3368.c
drivers/ram/rockchip/sdram_rk3188.c
drivers/ram/rockchip/sdram_rk322x.c
drivers/ram/rockchip/sdram_rk3288.c
drivers/ram/rockchip/sdram_rk3399.c
drivers/ram/stm32mp1/stm32mp1_ram.c
drivers/reset/reset-meson.c
include/regmap.h