From: Neil Armstrong Date: Thu, 14 Jun 2018 11:43:37 +0000 (+0200) Subject: adc: meson-saradc: fix regmap_init_mem call X-Git-Tag: v2018.07-rc2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0421c9809a6f41a3aebbf2185ffb0c297cf83e22;p=u-boot adc: meson-saradc: fix regmap_init_mem call The SARADC driver was merged after the following commit : commit d35812368a59 ("regmap: change regmap_init_mem() to take ofnode instead udevice") Thus breaking build, this patch fixes the regmap_init_mem accordingly. Signed-off-by: Neil Armstrong --- diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index bcab76d050..f7c919d3b0 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -654,7 +654,7 @@ static int meson_saradc_probe(struct udevice *dev) struct meson_saradc_priv *priv = dev_get_priv(dev); int ret; - ret = regmap_init_mem(dev, &priv->regmap); + ret = regmap_init_mem(dev_ofnode(dev), &priv->regmap); if (ret) return ret;