From 621bae79f1a250e443eb83d1f473c533bea493dc Mon Sep 17 00:00:00 2001 From: Hannu Heikkinen Date: Tue, 29 May 2012 15:07:40 -0700 Subject: [PATCH] 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-format-patch failed