From: Fabio Estevam <festevam@gmail.com>
Date: Fri, 20 Dec 2019 17:59:26 +0000 (-0300)
Subject: mx7dsabresd: Fix the pmic_get() parameter in the DM case
X-Git-Tag: v2025.01-rc5-pxa1908~2622^2~14
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=cb14a5bf661b83ba715b07268439fb7e3c054c16;p=u-boot.git

mx7dsabresd: Fix the pmic_get() parameter in the DM case

When pmic_get() is used with DM the first parameter must be
the complete node name plus the unit address, so fix it
accordingly.

Reported-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
---

diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
index 70490ba68e..835eed3316 100644
--- a/board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
@@ -264,7 +264,7 @@ int power_init_board(void)
 	struct udevice *dev;
 	int ret, dev_id, rev_id;
 
-	ret = pmic_get("pfuze3000", &dev);
+	ret = pmic_get("pfuze3000@08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 	if (ret != 0)