lkml.org 
[lkml]   [2012]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register
On Tue, Aug 28, 2012 at 06:15:35AM +0800, Shawn Guo wrote:
....
> > + sreg->anatop = syscon_regmap_lookup_by_phandle(np, "fsl,anatop");
> > + if (IS_ERR(sreg->anatop))
> > + return PTR_ERR(sreg->anatop);
> > +
>
> All the anatop regulators are child nodes of anatop. It looks a little
> odd to use phandle there. of_get_parent should just works.
>
Yes, this is a special case.
It's also ok for me to use of_get_parent if you want.
Will update it.

Regards
Dong Aisheng



\
 
 \ /
  Last update: 2012-08-28 05:21    [W:0.065 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site