From: Rafael J. Wysocki Date: Fri, 27 Dec 2013 00:07:11 +0000 (+0100) Subject: cpufreq: Clean up after a failing light-weight initialization X-Git-Tag: v3.13-rc7~2^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72368d122c7479aa6e14fbbd334717b8a0c157a6;p=pandora-kernel.git cpufreq: Clean up after a failing light-weight initialization If cpufreq_policy_restore() returns NULL during system resume, __cpufreq_add_dev() should just fall back to the full initialization instead of returning an error, because that may actually make things work. Moreover, it should not leave stale fallback data behind after it has failed to restore a previously existing policy. This change is based on Viresh Kumar's work. Fixes: 5302c3fb2e62 ("cpufreq: Perform light-weight init/teardown during suspend/resume") Reported-by: Bjørn Mork Signed-off-by: Rafael J. Wysocki Acked-by: Viresh Kumar Cc: 3.12+ # 3.12+ --- Reading git-diff-tree failed