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 <mario.six@gdsys.cc>
This commit is contained in:
Mario Six 2019-01-28 09:47:42 +01:00
parent ca0eab2dcf
commit 935a89241c

View 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;