diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-12-10 05:15:34 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-10 22:18:34 +0100 |
commit | 07cce74a7b259cb90029530e9549bf1d9a1b1c34 (patch) | |
tree | 856337b31922ce8d57bd341c2e6860e18ff27001 /mm/pagewalk.c | |
parent | PM / OPP: reuse find_device_opp() instead of duplicating code (diff) | |
download | linux-07cce74a7b259cb90029530e9549bf1d9a1b1c34.tar.xz linux-07cce74a7b259cb90029530e9549bf1d9a1b1c34.zip |
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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/pagewalk.c')
0 files changed, 0 insertions, 0 deletions