Re: [PATCH] rtc: tegra: cleanup probe/remove routines

From: Stephen Warren
Date: Fri Apr 13 2012 - 13:01:11 EST


On 04/12/2012 07:40 AM, Hannu Heikkinen wrote:
> From: Hannu Heikkinen <ext-hannu.m.heikkinen@xxxxxxxxx>
>
> Use the devres managed resource functions in the probe routine.
> Affects also in remove routine where previously used free and release
> functions are not needed.
>
> The devm_* functions eliminate the need for manual resource releasing
> and simplify error handling. Resources allocated by devm_* are freed
> automatically on driver detach.
>
> Signed-off-by: Hannu Heikkinen <ext-hannu.m.heikkinen@xxxxxxxxx>

Acked-by: Stephen Warren <swarren@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/