[U-Boot] [PATCH] pmic: lp873x: Accommodate fdt_subnode_offset signature change

Keerthy j-keerthy at ti.com
Thu Oct 13 13:56:57 CEST 2016


Accommodate fdt_subnode_offset signature change.

Signed-off-by: Keerthy <j-keerthy at ti.com>
---
 drivers/power/pmic/lp873x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/pmic/lp873x.c b/drivers/power/pmic/lp873x.c
index 307f96b..2af86b1 100644
--- a/drivers/power/pmic/lp873x.c
+++ b/drivers/power/pmic/lp873x.c
@@ -51,7 +51,7 @@ static int lp873x_bind(struct udevice *dev)
 	int children;
 	int node = dev->of_offset;
 
-	regulators_node = fdt_subnode_offset(blob, node, "regulators");
+	regulators_node = fdt_subnode_offset(node, blob, "regulators");
 
 	if (regulators_node <= 0) {
 		printf("%s: %s reg subnode not found!", __func__, dev->name);
-- 
1.9.1



More information about the U-Boot mailing list