]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gdsys_rxaui_ctrl: Use new regmap interface
authorMario Six <mario.six@gdsys.cc>
Mon, 28 Jan 2019 08:47:42 +0000 (09:47 +0100)
committerMario Six <mario.six@gdsys.cc>
Tue, 21 May 2019 05:52:34 +0000 (07:52 +0200)
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 <mario.six@gdsys.cc>
drivers/misc/gdsys_rxaui_ctrl.c

index f2c955b13d7de440ce79ffd3ce9b6fd84c286260..c56abce4d4c13fafcbc3088adeb59c27b9d7459f 100644 (file)
@@ -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;