warp7: Fix the pmic_get() parameter in the DM case
authorJoris Offouga <offougajoris@gmail.com>
Wed, 29 Jan 2020 21:05:58 +0000 (22:05 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 9 Feb 2020 13:59:54 +0000 (14:59 +0100)
When pmic_get() is used with DM the first parameter must be
the complete node name plus the unit address, so fix it
accordingly

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
board/warp7/warp7.c

index 9efc62f..1ebec93 100644 (file)
@@ -67,7 +67,7 @@ int power_init_board(void)
        struct udevice *dev;
        int ret, dev_id, rev_id;
 
-       ret = pmic_get("pfuze3000", &dev);
+       ret = pmic_get("pfuze3000@8", &dev);
        if (ret == -ENODEV)
                return 0;
        if (ret != 0)