Re: [PATCH] rtc: avoid calling platform_device_put() twice in test_init()

2012-11-07 Thread Wei Yongjun
On 11/07/2012 08:51 AM, Andrew Morton wrote: > On Tue, 23 Oct 2012 13:08:41 +0800 > Wei Yongjun wrote: > >> From: Wei Yongjun >> >> In case of error, the function test_init() need to call >> platform_device_del() instead of platform_device_unregister(). >> Otherwise, we may call platform_device_p

Re: [PATCH] rtc: avoid calling platform_device_put() twice in test_init()

2012-11-06 Thread Andrew Morton
On Tue, 23 Oct 2012 13:08:41 +0800 Wei Yongjun wrote: > From: Wei Yongjun > > In case of error, the function test_init() need to call > platform_device_del() instead of platform_device_unregister(). > Otherwise, we may call platform_device_put() twice. > > dpatch engine is used to auto generat

[PATCH] rtc: avoid calling platform_device_put() twice in test_init()

2012-10-22 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function test_init() need 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 Yo