thermal: cpu_cooling: do error handling at the bottom in __cpufreq_cooling_register()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:58 +0000 (09:41 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:57 +0000 (12:08 -0400)
commit730abe064b6f8860302b75a689ceed059c08e0b1
treedd7c6b8c70300c12ba77d681e3af287c1d82f341
parentc9ca319f0579cd51b07a666683157233c2cf720d
thermal: cpu_cooling: do error handling at the bottom in __cpufreq_cooling_register()

This makes life easy and bug free. And is scalable for future resource
allocations.

Acked-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c