commit | d7231f993ad4081da2c2784e2692617e2bd0551e | [log] [tgz] |
---|---|---|
author | Suman Anna <s-anna@ti.com> | Thu May 31 17:21:44 2018 -0500 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Jun 06 08:34:31 2018 +0200 |
tree | 0abf38cfdf5606cfbf254f7cd62a7660baa10bb1 | |
parent | e5d295b06d69a1924665a16a4987be475addd00f [diff] |
cpufreq: ti-cpufreq: Use devres managed API in probe() The ti_cpufreq_probe() function uses regular kzalloc to allocate the ti_cpufreq_data structure and kfree for freeing this memory on failures. Simplify this code by using the devres managed API. Signed-off-by: Suman Anna <s-anna@ti.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>