Re: [PATCH v3 01/31] spi: mpc512x: cleanup clock API use

From
Mark Brown <broonie@kernel.org>
Date
2013-07-22 14:09:04
Also in
linux-arm-kernel, linux-devicetree
Reply to
Gerhard Sittig, 2013-07-22
On Mon, Jul 22, 2013 at 02:14:28PM +0200, Gerhard Sittig wrote:
quoted hunk ↗ jump to hunk
+	ret = clk_prepare_enable(clk);
+	if (ret) {
+		devm_clk_put(dev, clk);
+		goto free_irq;
The main point of the devm_ APIs is to avoid the need for explicit
freeing so you should just remove these puts.

Attachments

Thread (138 messages) 138 messages, 11 authors, last reply 2013-08-28
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