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)
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>

No differences found