]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpuidle: fix error handling in __cpuidle_register_device
authorColin Cross <ccross@android.com>
Wed, 14 Mar 2012 18:29:51 +0000 (11:29 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 29 Jun 2012 09:40:28 +0000 (11:40 +0200)
commitd0137a9d4fd40007a85f0a7006b091de6a0ba85e
treee579ccaf41607532c841289dd18dd7eff146f0ed
parenta95744b0f64d4e5d4725560a3f7b86617c2cf31c
cpuidle: fix error handling in __cpuidle_register_device

Fix the error handling in __cpuidle_register_device to include
the missing list_del.  Move it to a label, which will simplify
the error handling when coupled states are added.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/cpuidle/cpuidle.c