]> rtime.felk.cvut.cz Git - linux-imx.git/commit
PM / AVS: SmartReflex: use devm_* API to initialize SmartReflex
authorAndrii Tseglytskyi <andrii.tseglytskyi@ti.com>
Thu, 30 May 2013 10:43:56 +0000 (13:43 +0300)
committerKevin Hilman <khilman@linaro.org>
Mon, 10 Jun 2013 17:50:48 +0000 (10:50 -0700)
commitefca406b940e93e6af38c597eecd5fb79b39b7ea
treee574cadaf5887baaa7e1a49ce555601ea806fe76
parent299066bb376ef7720cc3d8de95d5b967c5446863
PM / AVS: SmartReflex: use devm_* API to initialize SmartReflex

Use of of devm_* API for resource allocation provides benefits such
as auto handling of resource free. This reduces possibility have
memory leaks in case of wrong error handling. All direct release
calls should be removed to avoid races.

Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Andrii Tseglytskyi <andrii.tseglytskyi@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
drivers/power/avs/smartreflex.c