From 0421c9809a6f41a3aebbf2185ffb0c297cf83e22 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Thu, 14 Jun 2018 13:43:37 +0200 Subject: [PATCH] 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 --- drivers/adc/meson-saradc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1