OSDN Git Service

ARM: OMAP4: CPUidle: Avoid double idle driver registration
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 25 Mar 2013 10:05:04 +0000 (15:35 +0530)
committerKevin Hilman <khilman@linaro.org>
Tue, 9 Apr 2013 16:44:49 +0000 (09:44 -0700)
commitdbd1ba6a62408520e5c7a024b521af14e71b2987
treea14c6cf92fa2b2fd7af48269ddd725392f218ef4
parent0d97558901c446a989de202a5d9ae94ec53644e5
ARM: OMAP4: CPUidle: Avoid double idle driver registration

OMAP4 CPUidle driver registration call is under a loop which leads
to calling cpuidle_register_driver twice which is not intended.

Fix it by moving the driver registration outside the loop.

Reported-by: Nishanth Menon <nm@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/mach-omap2/cpuidle44xx.c