Re: [PATCH v2] net/nxp/lpc_eth: use devm_ functions

David Miller
2014-06-17T22:31:14Z

From: Himangi Saraogi <himangi774@gmail.com>
Date: Fri, 13 Jun 2014 23:33:56 +0530

> The various devm_ functions allocate memory that is released when a
> driver detaches. This patch uses dmam_alloc_coherent, devm_ioremap
> devm_clk_get etc. for data that is allocated in the probe function of
> platform device and is only freed in the remove function. The
> corresponding free functions are removed and many labels are done
> away with.
>
> Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
> Acked-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
> v2: undo use of devm_request_irq
> Not compile tested

This doesn't apply cleanly to any of my trees.