devfreq_cooling: return on allocation failure

If the allocation fails then we can't continue.

Fixes: a76caf55e5b3 ('thermal: Add devfreq cooling')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
(cherry picked from commit ce5ee1611284bef81d0308c6c2749902f55ed1d5)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 file changed