[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1392914822-25825-1-git-send-email-fabio.estevam@freescale.com>
Date: Thu, 20 Feb 2014 13:47:02 -0300
From: Fabio Estevam <fabio.estevam@...escale.com>
To: <broonie@...nel.org>
CC: <shawn.guo@...aro.org>, <linux-kernel@...r.kernel.org>,
Fabio Estevam <fabio.estevam@...escale.com>
Subject: [PATCH] pfuze100-regulator: Return error on of_node_get() failure
If of_node_get() fails, we should return an error.
Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>
---
drivers/regulator/pfuze100-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
index dcb03ce..1296221 100644
--- a/drivers/regulator/pfuze100-regulator.c
+++ b/drivers/regulator/pfuze100-regulator.c
@@ -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) {
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists