提交 0421c980 编写于 作者: N Neil Armstrong 提交者: Tom Rini

adc: meson-saradc: fix regmap_init_mem call

The SARADC driver was merged after the following commit :
commit d3581236 ("regmap: change regmap_init_mem() to take ofnode instead udevice")
Thus breaking build, this patch fixes the regmap_init_mem accordingly.
Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
上级 018e8637
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册