]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-tegra.c: clean up probe/remove routines
authorHannu Heikkinen <ext-hannu.m.heikkinen@nokia.com>
Tue, 29 May 2012 22:07:40 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:34 +0000 (16:22 -0700)
commite9667061f013ca9a50986151d195434a3c2a4ed2
tree00bd66ff5b79fec03980a2a8d6c99b2fa8eb649f
parent43f0a225d27e67cb9e7f3d8d1644264bc6b23266
drivers/rtc/rtc-tegra.c: clean up probe/remove routines

Use the devres managed resource functions in the probe routine.  Also
affects the remove routine where the 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>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-tegra.c