[U-Boot] [PATCH 2/2] gdsys_rxaui_ctrl: Use new regmap interface

Mario Six mario.six at gdsys.cc
Fri Mar 29 08:41:57 UTC 2019


On Mon, Jan 28, 2019 at 9:48 AM Mario Six <mario.six at gdsys.cc> wrote:
>
> 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 at gdsys.cc>
> ---
>  drivers/misc/gdsys_rxaui_ctrl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc/gdsys_rxaui_ctrl.c
> index f2c955b13d7..c56abce4d4c 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;
>
> --
> 2.20.1
>
>

Applied to u-boot-mpc83xx/next.


More information about the U-Boot mailing list