]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: samsung: goni: fix the pmic's name for getting
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 5 Jan 2017 07:55:14 +0000 (16:55 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 18 Jan 2017 04:21:28 +0000 (13:21 +0900)
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 <jh80.chung@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/dts/s5pc1xx-goni.dts
board/samsung/goni/goni.c

index e80132dd99f3652d0c37165ca64ea3467805124b..182325a09146d1f744940ab5d9e36415699d2c3b 100644 (file)
@@ -42,7 +42,7 @@
                #size-cells = <0>;
                status = "okay";
 
-               pmic@66 {
+               max8998-pmic@66 {
                        compatible = "maxim,max8998";
                        reg = <0x66 0 0>;
 
index 80fd0d43d08126dd35aef52e3e3ad0ce088086c2..9c48d71a6748fbf48f5a88911303327680d5a667 100644 (file)
@@ -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;