summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-09-11 15:51:09 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2014-09-15 11:16:53 -0300
commitb4c85efb85d80b387ed4497fbfd0fdb557f0785d (patch)
treeb6c62277c2c7f9e438afe64ef0cc6ca74722c2e0 /recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch
parente9bf647e10ff1e31f911d3236dbb22a1ad7ace9f (diff)
downloadmeta-fsl-arm-b4c85efb85d80b387ed4497fbfd0fdb557f0785d.tar.gz
linux-imx (3.10.17): Forward port 3.10.17-1.0.0 fixes
Freescale when doing 3.10.17-1.0.1 has ignored the fixes done, by themselves, in the 3.10.17-1.0.0 kernel. This includes following patches, rebased on top 3.10.17-1.0.1: ENGR00318392 ARM:imx6x: Save/restore SCU and some CP15 registers across suspend/resume ENGR00301078-2: ARM: dts: imx6sl-evk: add support for pfuze200 on imx6sl-evk ENGR00301078-1: ARM: dts: imx6dl-sabresd: add support for pfuze200 on mx6dl-sabresd pfuze100-regulator: Fix of_node_get() parameter regulator: pfuze100: Use of_get_child_by_name regulator: pfuze100: Add PFUZE200 support to Kconfig and module description regulator: pfuze100: Add terminate entry for [i2c|of]_device_id tables regulator: pfuze100: add pfuze200 support regulator: pfuze100: Fix address of FABID ENGR00309838 ARM: imx6sl: gpc: add chip revision check for dispmix Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch')
-rw-r--r--recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch b/recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch
new file mode 100644
index 0000000..d077858
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx-3.10.17/0007-pfuze100-regulator-Fix-of_node_get-parameter.patch
@@ -0,0 +1,44 @@
1From cc1f086131aa802abc38428a5a690eb5f35c8225 Mon Sep 17 00:00:00 2001
2From: Fabio Estevam <fabio.estevam@freescale.com>
3Date: Tue, 18 Feb 2014 23:46:14 -0300
4Subject: [PATCH 07/10] pfuze100-regulator: Fix of_node_get() parameter
5Organization: O.S. Systems Software LTDA.
6
7Since commit d7857c42 (regulator: pfuze100: Use of_get_child_by_name) we get
8the following probe failure:
9
10pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 0
11pfuze100-regulator 1-0008: FAB: 0, FIN: 0
12pfuze100-regulator 1-0008: regulators node not found
13pfuze100-regulator: probe of 1-0008 failed with error -22
14
15Now that of_get_child_by_name() is used we should adjust the device_node pointer
16'np' to not get the parent node anymore.
17
18Suggested-by: Shawn Guo <shawn.guo@linaro.org>
19Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
20Acked-by: Sachin Kamat <sachin.kamat@linaro.org>
21Signed-off-by: Mark Brown <broonie@linaro.org>
22(cherry picked from commit 0780208ff201feb45e12ebecb39ecac4740b1244)
23
24Upstream-Status: Pending
25---
26 drivers/regulator/pfuze100-regulator.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
30index 15059c74..b9c1b9a 100644
31--- a/drivers/regulator/pfuze100-regulator.c
32+++ b/drivers/regulator/pfuze100-regulator.c
33@@ -295,7 +295,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
34 struct device_node *np, *parent;
35 int ret;
36
37- np = of_node_get(dev->parent->of_node);
38+ np = of_node_get(dev->of_node);
39 if (!np)
40 return 0;
41
42--
432.1.0
44