Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-31 Thread Rafael J. Wysocki
30, 2013 5:28 PM To: Wang Dongsheng-B40534 Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] cpuidle: fix unremovable issue for module driver On 07/30/2013 08:55 AM, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w

[PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com After __cpuidle_register_device, the cpu incs are added up, but decs are not, thus the module refcount is not match. So the module exit function can not be executed when we do remove operation. Move module_put into __cpuidle_register_device to fix

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Daniel Lezcano
On 07/30/2013 08:55 AM, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com After __cpuidle_register_device, the cpu incs are added up, but decs are not, thus the module refcount is not match. So the module exit function can not be executed when we do remove operation.

RE: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Wang Dongsheng-B40534
-Original Message- From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] Sent: Tuesday, July 30, 2013 5:28 PM To: Wang Dongsheng-B40534 Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] cpuidle: fix unremovable issue for module driver

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Daniel Lezcano
: [PATCH] cpuidle: fix unremovable issue for module driver On 07/30/2013 08:55 AM, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com After __cpuidle_register_device, the cpu incs are added up, but decs are not, thus the module refcount is not match. So the module exit

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Rafael J. Wysocki
; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] cpuidle: fix unremovable issue for module driver On 07/30/2013 08:55 AM, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com After __cpuidle_register_device, the cpu incs are added up, but decs