Wei Yongjun 942bfb3ed0 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>
2012-12-17 17:15:20 -08:00
..
2012-12-15 12:37:18 -08:00
2012-11-23 14:32:55 +01:00
2012-12-12 12:05:15 -08:00
2012-12-07 23:13:36 +01:00
2012-12-17 17:15:13 -08:00
2012-12-12 11:45:16 -08:00
2012-12-11 14:08:47 -08:00
2012-12-15 13:03:48 -08:00
2012-12-13 11:51:23 -08:00
2012-12-12 11:45:16 -08:00
2012-12-17 17:15:14 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 12:23:41 -08:00
2012-12-11 13:13:55 -08:00
2012-12-13 19:15:11 -08:00
2012-12-15 13:03:48 -08:00
2012-12-12 12:05:15 -08:00
2012-12-16 17:39:14 -08:00