power: pmic: tps65941: Add support for probing the child devices
authorTero Kristo <t-kristo@ti.com>
Fri, 14 Feb 2020 09:18:14 +0000 (11:18 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 3 Mar 2020 07:38:14 +0000 (13:08 +0530)
TPS65941 can have child devices under it (like the ESM support), so
probe these once the master pmic node completes probe.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/power/pmic/tps65941.c

index e8f3c950bd7f854e019de4c10d9027f0ab64df03..7b3416ae6ec8d9f3a5ebaa4eff087cdb2a1d7664 100644 (file)
@@ -59,8 +59,8 @@ static int tps65941_bind(struct udevice *dev)
        if (!children)
                printf("%s: %s - no child found\n", __func__, dev->name);
 
-       /* Always return success for this device */
-       return 0;
+       /* Probe all the child devices */
+       return dm_scan_fdt_dev(dev);
 }
 
 static struct dm_pmic_ops tps65941_ops = {