]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-test.c: avoid calling platform_device_put() twice
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 9 Nov 2012 03:04:58 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:18 +0000 (15:55 +1100)
commit25d1ea77ce218cc7801992a7aac4f23d776a1f59
tree3518038b0cf5ecc9d462068db2da12b47840a230
parent7dc5766b8eee3a511e25c7ae51b14860efacc56f
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)

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>
drivers/rtc/rtc-test.c