Re: [PATCH v4 1/7] mfd: add syscon driver based on regmap

From
Shawn Guo <hidden>
Date
2012-09-03 03:09:12
Also in
linux-arm-kernel, lkml
Reply to
Dong Aisheng, 2012-09-03
On Mon, Sep 03, 2012 at 10:31:03AM +0800, Dong Aisheng wrote:
quoted
I think of_node_put should be moved out from here and put into
syscon_node_to_regmap and syscon_regmap_lookup_by_compatible.
I guess no, if you want to move of_node_put into syscon_regmap_lookup_by_phandle,
then syscon_regmap_lookup_by_phandle has the same issue.
I guess not.  syscon_regmap_lookup_by_phandle itself calls of_parse_phandle,
and that's where the refcount gets incremented, so syscon_regmap_lookup_by_phandle
should be responsible for calling of_node_put to get the refcount decremented.

-- 
Regards,
Shawn
Thread (16 messages) 16 messages, 2 authors, last reply 2012-09-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help