aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-spear.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-12-17 16:02:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 17:15:20 -0800
commit942bfb3ed08b677e0a447096c501d6b0b49f44f9 (patch)
tree97856fa62b4042e6a55c2184c5aa4f4328533979 /drivers/rtc/rtc-spear.c
parentdrivers/rtc/rtc-vt8500.c: convert to use devm_kzalloc (diff)
downloadlinux-dev-942bfb3ed08b677e0a447096c501d6b0b49f44f9.tar.xz
linux-dev-942bfb3ed08b677e0a447096c501d6b0b49f44f9.zip
drivers/rtc/rtc-test.c: avoid calling platform_device_put() twice
In case of error, test_init() needs to call platform_device_del() instead of platform_device_unregister(). Otherwise, we may call platform_device_put() twice. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) [akpm@linux-foundation.org: improve label naming] Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions