From: Santosh Shilimkar Date: Mon, 25 Mar 2013 10:05:05 +0000 (+0530) Subject: ARM: OMAP: CPUidle: Unregister drivere on device registration failure X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~92^2~2^2~27^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63b951ed5b82c2891982437d1f57cb94dc0b3757;p=pandora-kernel.git ARM: OMAP: CPUidle: Unregister drivere on device registration failure If the CPUidle device registration fails for some reason, we should unregister the driver on error path. Fix the code accordingly. Also when at it, check of the driver registration failure too. Acked-by: Nishanth Menon Signed-off-by: Santosh Shilimkar Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed