From: Hannu Heikkinen Date: Tue, 29 May 2012 22:07:40 +0000 (-0700) Subject: drivers/rtc/rtc-tegra.c: clean up probe/remove routines X-Git-Tag: v3.5-rc1~49^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621bae79f1a250e443eb83d1f473c533bea493dc;p=pandora-kernel.git 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 Acked-by: Stephen Warren Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed