From: Jaehoon Chung Date: Thu, 5 Jan 2017 07:55:14 +0000 (+0900) Subject: board: samsung: goni: fix the pmic's name for getting X-Git-Tag: v2017.03-rc1~95^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fd3b710ae8d37c3909aee47352c6f7f79b8d9b3f;p=oweals%2Fu-boot.git board: samsung: goni: fix the pmic's name for getting For Getting from uclass, use the "max8998-pmic" as name. It also needs to change the dt-node's name as "max8998-pmic". Otherwise, it doesn't find the pmic device. Because it's only searching for 'max8998_pmic'. Signed-off-by: Jaehoon Chung Signed-off-by: Minkyu Kang --- diff --git a/arch/arm/dts/s5pc1xx-goni.dts b/arch/arm/dts/s5pc1xx-goni.dts index e80132dd99..182325a091 100644 --- a/arch/arm/dts/s5pc1xx-goni.dts +++ b/arch/arm/dts/s5pc1xx-goni.dts @@ -42,7 +42,7 @@ #size-cells = <0>; status = "okay"; - pmic@66 { + max8998-pmic@66 { compatible = "maxim,max8998"; reg = <0x66 0 0>; diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 80fd0d43d0..9c48d71a67 100644 --- a/board/samsung/goni/goni.c +++ b/board/samsung/goni/goni.c @@ -138,7 +138,7 @@ static int s5pc1xx_phy_control(int on) static int status; int reg, ret; - ret = pmic_get("max8998_pmic", &dev); + ret = pmic_get("max8998-pmic", &dev); if (ret) return ret;