diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2018-06-14 13:43:37 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-06-19 07:31:46 -0400 |
commit | 0421c9809a6f41a3aebbf2185ffb0c297cf83e22 (patch) | |
tree | f6908e7cb203976066f82ad79b45f3226e780cb0 /drivers/adc | |
parent | 018e8637b83e0ae9465bbd80254a2f8a084e3d4c (diff) | |
download | u-boot-0421c9809a6f41a3aebbf2185ffb0c297cf83e22.tar.gz u-boot-0421c9809a6f41a3aebbf2185ffb0c297cf83e22.tar.bz2 u-boot-0421c9809a6f41a3aebbf2185ffb0c297cf83e22.zip |
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 <narmstrong@baylibre.com>
Diffstat (limited to 'drivers/adc')
-rw-r--r-- | drivers/adc/meson-saradc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |