thermal: cpu_cooling: propagate error returned by idr_alloc()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:54 +0000 (09:41 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:56 +0000 (12:08 -0400)
commit268ac445ee1b2b7c2806e7a21076e6d94aca1ca3
tree3531e4ba28bcd525db32f90fa3f480a0c9b0a293
parent8e54d442fe3cdd1ffe5f563ee843b4d48e14ef6e
thermal: cpu_cooling: propagate error returned by idr_alloc()

We aren't supposed to return our own error type here. Return what we got.

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