Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e34b4770 authored by Viresh Kumar's avatar Viresh Kumar Committed by Alex Shi
Browse files

PM / OPP: handle allocation of device_opp in a separate routine



Get the 'device_opp' allocation code into a separate routine to keep only the
necessary part in dev_pm_opp_add_dynamic().

Also do s/sizeof(struct device_opp)/sizeof(*dev_opp) and remove the print
message on kzalloc() failure as checkpatch warns for that.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 07cce74a7b259cb90029530e9549bf1d9a1b1c34)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent de52743a
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