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>
Wed, 3 Apr 2013 21:39:58 +0000 (14:39 -0700)
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>

No differences found