From: Mario Six Date: Mon, 28 Jan 2019 08:47:42 +0000 (+0100) Subject: gdsys_rxaui_ctrl: Use new regmap interface X-Git-Tag: v2019.07-rc3~13^2~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=935a89241c97cdd671326c98c43f3833dba96a5b;p=oweals%2Fu-boot.git gdsys_rxaui_ctrl: Use new regmap interface For the DM case, use the proper parameter for the regmap_init_mem call (which is the ofnode, not the udevice). Signed-off-by: Mario Six --- diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc/gdsys_rxaui_ctrl.c index f2c955b13d..c56abce4d4 100644 --- a/drivers/misc/gdsys_rxaui_ctrl.c +++ b/drivers/misc/gdsys_rxaui_ctrl.c @@ -59,7 +59,7 @@ int gdsys_rxaui_ctrl_probe(struct udevice *dev) { struct gdsys_rxaui_ctrl_priv *priv = dev_get_priv(dev); - regmap_init_mem(dev, &priv->map); + regmap_init_mem(dev_ofnode(dev), &priv->map); priv->state = false;