diff options
author | Suman Anna <s-anna@ti.com> | 2018-05-31 17:21:44 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-06-06 08:34:31 +0200 |
commit | d7231f993ad4081da2c2784e2692617e2bd0551e (patch) | |
tree | 0abf38cfdf5606cfbf254f7cd62a7660baa10bb1 /lib/percpu_counter.c | |
parent | e5d295b06d69a1924665a16a4987be475addd00f (diff) | |
download | linux-d7231f993ad4081da2c2784e2692617e2bd0551e.tar.bz2 |
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>
Diffstat (limited to 'lib/percpu_counter.c')
0 files changed, 0 insertions, 0 deletions