Skip to contentSkip to conversation

pmic: lp873x: Accommodate fdt_subnode_offset signature change

PATCH New Keerthy 3 participants 3 messages Oct 13, 2016

lore
Share & tools
lore

Keerthy

author
#0 lore raw

PATCH 1/1 pmic: lp873x: Accommodate fdt_subnode_offset signature change

Accommodate fdt_subnode_offset signature change.

---
 drivers/power/pmic/lp873x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/pmic/lp873x.c +1 -1
index 307f96b..2af86b1 100644
@@ -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);
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 pmic: lp873x: Accommodate fdt_subnode_offset signature change

Hi Keerthy,

Quoted 12 lines · Keerthy

Accommodate fdt_subnode_offset signature change.

---
 drivers/power/pmic/lp873x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/pmic/lp873x.c +0 -0
index 307f96b..2af86b1 100644

drivers/power/pmic/lp873x.c static int lp873x_bind(struct udevice *dev) · line 54

Quoted 5 lines
drivers/power/pmic/lp873x.c +1 -1
@@ -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");

I don't think the signature has changed on this one.

Quoted 6 lines
drivers/power/pmic/lp873x.c +0 -1
        if (regulators_node <= 0) {
                printf("%s: %s reg subnode not found!", __func__, dev->name);
--

1.9.1

Regards,
Simon

#2 lore raw

PATCH 1/1 pmic: lp873x: Accommodate fdt_subnode_offset signature change

Quoted 18 lines · Simon Glass

Hi Keerthy,

Quoted 15 lines · Keerthy

Accommodate fdt_subnode_offset signature change.

---
 drivers/power/pmic/lp873x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/pmic/lp873x.c +0 -0
index 307f96b..2af86b1 100644
@@ -51,7 +51,7 @@ static int lp873x_bind(struct udevice *dev)
        int children;
        int node = dev->of_offset;
 
Quoted 4 lines

drivers/power/pmic/lp873x.c static int lp873x_bind(struct udevice *dev) · line 54

Quoted 2 lines
drivers/power/pmic/lp873x.c +1 -1
-       regulators_node = fdt_subnode_offset(blob, node, "regulators");
+       regulators_node = fdt_subnode_offset(node, blob, "regulators");

I don't think the signature has changed on this one.

Ouch! I went through your patch again. Oversight. This is not needed. Palmas patch is good enough.

Thanks,
Keerthy

Quoted 11 lines
Quoted 7 lines
drivers/power/pmic/lp873x.c +0 -1
        if (regulators_node <= 0) {
                printf("%s: %s reg subnode not found!", __func__, dev->name);
--

1.9.1

Regards,
Simon