Skip to content

Commit 799f9cf

Browse files
committed
Merge existing fixes from regulator/for-5.17 into new branch
2 parents e783362 + b4c18c1 commit 799f9cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/regulator/max20086-regulator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <linux/err.h>
99
#include <linux/gpio.h>
10+
#include <linux/gpio/consumer.h>
1011
#include <linux/i2c.h>
1112
#include <linux/module.h>
1213
#include <linux/regmap.h>
@@ -140,7 +141,7 @@ static int max20086_parse_regulators_dt(struct max20086 *chip, bool *boot_on)
140141
node = of_get_child_by_name(chip->dev->of_node, "regulators");
141142
if (!node) {
142143
dev_err(chip->dev, "regulators node not found\n");
143-
return PTR_ERR(node);
144+
return -ENODEV;
144145
}
145146

146147
for (i = 0; i < chip->info->num_outputs; ++i)

0 commit comments

Comments
 (0)