From: narmstrong@baylibre.com (Neil Armstrong)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH u-boot 1/5] adc: meson-saradc: fix regmap_init_mem call
Date: Thu, 14 Jun 2018 13:43:37 +0200 [thread overview]
Message-ID: <1528976621-8397-2-git-send-email-narmstrong@baylibre.com> (raw)
In-Reply-To: <1528976621-8397-1-git-send-email-narmstrong@baylibre.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c
index bcab76d..f7c919d 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.7.4
next prev parent reply other threads:[~2018-06-14 11:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-14 11:43 [PATCH u-boot 0/5] Amlogic Meson GX Updates for v2018.07 Neil Armstrong
2018-06-14 11:43 ` Neil Armstrong [this message]
2018-06-19 18:43 ` [U-Boot,u-boot,1/5] adc: meson-saradc: fix regmap_init_mem call Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 2/5] config: meson-gx-common: Enable USB boot Neil Armstrong
2018-06-19 18:43 ` [U-Boot,u-boot,2/5] " Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 3/5] clk: add Amlogic meson clock driver Neil Armstrong
2018-06-19 18:43 ` [U-Boot,u-boot,3/5] " Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 4/5] meson: use the " Neil Armstrong
2018-06-19 18:43 ` [U-Boot,u-boot,4/5] " Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 5/5] configs: Update Meson GX configs Neil Armstrong
2018-06-19 18:43 ` [U-Boot,u-boot,5/5] " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1528976621-8397-2-git-send-email-narmstrong@baylibre.com \
--to=narmstrong@baylibre.com \
--cc=linus-amlogic@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®