PM / OPP: Don't create copy of regulators unnecessarily
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 23 May 2017 04:02:11 +0000 (09:32 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Jun 2017 01:15:30 +0000 (03:15 +0200)
commit478256bddb0323898694bd22acdf42a70d4ff024
treee71235d1e388a265d04708a99ef33fb7c44dad02
parentc74b32fadc00f2412d86a19295eb867b1a772948
PM / OPP: Don't create copy of regulators unnecessarily

This code was required while the OPP core was managed with help of RCUs,
but not anymore. Get rid of unnecessary alloc/memcpy operations.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c