lkml.org 
[lkml]   [2012]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rtc: tegra: cleanup probe/remove routines
On 04/12/2012 07:40 AM, Hannu Heikkinen wrote:
> From: Hannu Heikkinen <ext-hannu.m.heikkinen@nokia.com>
>
> 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@nokia.com>

Acked-by: Stephen Warren <swarren@wwwdotorg.org>


\
 
 \ /
  Last update: 2012-04-13 19:03    [W:0.074 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site