From: Wei Yongjun Date: Tue, 18 Dec 2012 00:02:27 +0000 (-0800) Subject: drivers/rtc/rtc-test.c: avoid calling platform_device_put() twice X-Git-Tag: v3.8-rc1~74^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942bfb3ed08b677e0a447096c501d6b0b49f44f9;p=pandora-kernel.git 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 Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed