Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6428789e authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

pfuze100-regulator: Return error on of_node_get() failure



If of_node_get() fails, we should return an error.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 3e01c75a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)

	np = of_node_get(dev->of_node);
	if (!np)
		return 0;
		return -EINVAL;

	parent = of_get_child_by_name(np, "regulators");
	if (!parent) {