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

- From: Mark Brown \<broonie@kernel.org\>
- Date: 2013-07-22 14:09:04 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2013/07/8074905
- Thread: https://ratatoskr.run/linuxppc-dev/2013/07/8074764/t.md

```text
On Mon, Jul 22, 2013 at 02:14:28PM +0200, Gerhard Sittig wrote:

> +	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

- [signature.asc](https://ratatoskr.run/linuxppc-dev/2013/07/8074905/attachment/0) (application/pgp-signature, 836 bytes)
