]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/regulator/s2mps11.c
Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / drivers / regulator / s2mps11.c
index 5bc00884cf512d4ebecfe470603a97f9a3827a43..4f2dc5ebffdc49773e4ba53d3c1a826c8e98e1c2 100644 (file)
@@ -844,10 +844,9 @@ static void s2mps14_pmic_dt_parse_ext_control_gpio(struct platform_device *pdev,
                if (!rdata[reg].init_data || !rdata[reg].of_node)
                        continue;
 
-               gpio[reg] = devm_gpiod_get_from_of_node(&pdev->dev,
-                               rdata[reg].of_node,
-                               "samsung,ext-control-gpios",
-                               0,
+               gpio[reg] = devm_fwnode_gpiod_get(&pdev->dev,
+                               of_fwnode_handle(rdata[reg].of_node),
+                               "samsung,ext-control",
                                GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE,
                                "s2mps11-regulator");
                if (PTR_ERR(gpio[reg]) == -ENOENT)