]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/regulator/max8997-regulator.c
Merge tag 'block-5.6-2020-02-05' of git://git.kernel.dk/linux-block
[linux.git] / drivers / regulator / max8997-regulator.c
index 3bf5ddfaaea89d0cbebc5e70588759a8aa5b7d1a..4d2487279a0a01bb93e3d901397458358459166c 100644 (file)
@@ -925,7 +925,7 @@ static int max8997_pmic_dt_parse_pdata(struct platform_device *pdev,
        pdata->regulators = rdata;
        for_each_child_of_node(regulators_np, reg_np) {
                for (i = 0; i < ARRAY_SIZE(regulators); i++)
-                       if (!of_node_cmp(reg_np->name, regulators[i].name))
+                       if (of_node_name_eq(reg_np, regulators[i].name))
                                break;
 
                if (i == ARRAY_SIZE(regulators)) {