* [PATCH] pfuze100-regulator: Fix of_node_get() parameter
@ 2014-02-19 2:46 Fabio Estevam
2014-02-19 3:32 ` Sachin Kamat
2014-02-19 3:39 ` Mark Brown
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2014-02-19 2:46 UTC (permalink / raw)
To: broonie; +Cc: shawn.guo, sachin.kamat, linux-kernel, Fabio Estevam
From: Fabio Estevam <fabio.estevam@freescale.com>
Since commit d7857c42 (regulator: pfuze100: Use of_get_child_by_name) we get
the following probe failure:
pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 0
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: regulators node not found
pfuze100-regulator: probe of 1-0008 failed with error -22
Now that of_get_child_by_name() is used we should adjust the device_node pointer
'np' to not get the parent node anymore.
Suggested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.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 c1cb202..dcb03ce 100644
--- a/drivers/regulator/pfuze100-regulator.c
+++ b/drivers/regulator/pfuze100-regulator.c
@@ -250,7 +250,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
struct device_node *np, *parent;
int ret;
- np = of_node_get(dev->parent->of_node);
+ np = of_node_get(dev->of_node);
if (!np)
return 0;
--
1.8.1.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pfuze100-regulator: Fix of_node_get() parameter
2014-02-19 2:46 [PATCH] pfuze100-regulator: Fix of_node_get() parameter Fabio Estevam
@ 2014-02-19 3:32 ` Sachin Kamat
2014-02-19 4:14 ` Mark Brown
2014-02-19 3:39 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2014-02-19 3:32 UTC (permalink / raw)
To: Fabio Estevam; +Cc: Mark Brown, Shawn Guo, LKML, Fabio Estevam
On 19 February 2014 08:16, Fabio Estevam <festevam@gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Since commit d7857c42 (regulator: pfuze100: Use of_get_child_by_name) we get
> the following probe failure:
>
> pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 0
> pfuze100-regulator 1-0008: FAB: 0, FIN: 0
> pfuze100-regulator 1-0008: regulators node not found
> pfuze100-regulator: probe of 1-0008 failed with error -22
>
> Now that of_get_child_by_name() is used we should adjust the device_node pointer
> 'np' to not get the parent node anymore.
>
> Suggested-by: Shawn Guo <shawn.guo@linaro.org>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Thanks for the fix Fabio.
Acked-by: Sachin Kamat <sachin.kamat@linaro.org>
Mark,
There are a few more instances that should be fixed like this one. How would you
prefer to handle them - Resend the complete patch or send just the
incremental fix?
--
With warm regards,
Sachin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pfuze100-regulator: Fix of_node_get() parameter
2014-02-19 2:46 [PATCH] pfuze100-regulator: Fix of_node_get() parameter Fabio Estevam
2014-02-19 3:32 ` Sachin Kamat
@ 2014-02-19 3:39 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2014-02-19 3:39 UTC (permalink / raw)
To: Fabio Estevam; +Cc: shawn.guo, sachin.kamat, linux-kernel, Fabio Estevam
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
On Tue, Feb 18, 2014 at 11:46:14PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Since commit d7857c42 (regulator: pfuze100: Use of_get_child_by_name) we get
> the following probe failure:
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-19 4:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 2:46 [PATCH] pfuze100-regulator: Fix of_node_get() parameter Fabio Estevam
2014-02-19 3:32 ` Sachin Kamat
2014-02-19 4:14 ` Mark Brown
2014-02-19 3:39 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®