From: Colin Cross Date: Tue, 8 May 2012 00:57:40 +0000 (-0700) Subject: cpuidle: fix error handling in __cpuidle_register_device X-Git-Tag: v3.6-rc1~82^2^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af272ab75c7a0c7fa5ae5507724d961f7e7718b;p=pandora-kernel.git 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 Tested-by: Santosh Shilimkar Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman Signed-off-by: Colin Cross Reviewed-by: Rafael J. Wysocki Signed-off-by: Len Brown --- Reading git-diff-tree failed