adc: meson-saradc: fix regmap_init_mem call
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 14 Jun 2018 11:43:37 +0000 (13:43 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jun 2018 11:31:46 +0000 (07:31 -0400)
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 <narmstrong@baylibre.com>
drivers/adc/meson-saradc.c

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