Re: [PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

From
Shawn Guo <hidden>
Date
2012-09-04 11:34:34
Also in
linux-arm-kernel, lkml
Reply to
Dong Aisheng, 2012-09-04
On Tue, Sep 04, 2012 at 11:20:10AM +0800, Dong Aisheng wrote:
quoted hunk ↗ jump to hunk
+
+	anatop_np = of_get_parent(np);
+	if (!anatop_np)
+		return -ENODEV;
+	sreg->anatop = syscon_node_to_regmap(anatop_np);
+	if (IS_ERR(sreg->anatop))
+		return PTR_ERR(sreg->anatop);
+
With of_node_put moved out from syscon_node_to_regmap, shouldn't
we put anatop_np here then?

-- 
Regards,
Shawn
Thread (11 messages) 11 messages, 4 authors, last reply 2012-09-04
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