mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
adc: meson-saradc: fix regmap_init_mem call
The SARADC driver was merged after the following commit :
commit d35812368a
("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>
This commit is contained in:
parent
018e8637b8
commit
0421c9809a
|
@ -654,7 +654,7 @@ static int meson_saradc_probe(struct udevice *dev)
|
||||||
struct meson_saradc_priv *priv = dev_get_priv(dev);
|
struct meson_saradc_priv *priv = dev_get_priv(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = regmap_init_mem(dev, &priv->regmap);
|
ret = regmap_init_mem(dev_ofnode(dev), &priv->regmap);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user