summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx-3.10.17/0006-regulator-pfuze100-Use-of_get_child_by_name.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-imx-3.10.17/0006-regulator-pfuze100-Use-of_get_child_by_name.patch')
-rw-r--r--recipes-kernel/linux/linux-imx-3.10.17/0006-regulator-pfuze100-Use-of_get_child_by_name.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/recipes-kernel/linux/linux-imx-3.10.17/0006-regulator-pfuze100-Use-of_get_child_by_name.patch b/recipes-kernel/linux/linux-imx-3.10.17/0006-regulator-pfuze100-Use-of_get_child_by_name.patch
deleted file mode 100644
index 21b2e0c..0000000
--- a/recipes-kernel/linux/linux-imx-3.10.17/0006-regulator-pfuze100-Use-of_get_child_by_name.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From cef8d38fc22ed27e26c8b3d8594c152b6c542253 Mon Sep 17 00:00:00 2001
2From: Sachin Kamat <sachin.kamat@linaro.org>
3Date: Fri, 14 Feb 2014 17:20:00 +0530
4Subject: [PATCH 06/10] regulator: pfuze100: Use of_get_child_by_name
5Organization: O.S. Systems Software LTDA.
6
7of_find_node_by_name walks the allnodes list, and can thus walk
8outside of the parent node. Use of_get_child_by_name instead.
9
10Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
11Signed-off-by: Mark Brown <broonie@linaro.org>
12(cherry picked from commit 4d286178d55cc5811d50750a44eb729252adef11)
13
14Upstream-Status: Pending
15---
16 drivers/regulator/pfuze100-regulator.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
20index 21114f7..15059c74 100644
21--- a/drivers/regulator/pfuze100-regulator.c
22+++ b/drivers/regulator/pfuze100-regulator.c
23@@ -299,7 +299,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
24 if (!np)
25 return 0;
26
27- parent = of_find_node_by_name(np, "regulators");
28+ parent = of_get_child_by_name(np, "regulators");
29 if (!parent) {
30 dev_err(dev, "regulators node not found\n");
31 return -EINVAL;
32--
332.1.0
34