Skip to content
Commit d7231f99 authored by Suman Anna's avatar Suman Anna Committed by Rafael J. Wysocki
Browse files

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: default avatarSuman Anna <s-anna@ti.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e5d295b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment