PM / OPP: Allocate dev_opp from _add_device_opp()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 29 Jul 2015 10:53:00 +0000 (16:23 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Aug 2015 01:04:22 +0000 (03:04 +0200)
commitaa5f2f854f03e6dc3dec8874bbcff1452b4bc09e
tree3c0ca4eea6d13bdcbd5507475d59b7ab470f9f1d
parent3bac42caec612a1b82db7944570353cddca6a013
PM / OPP: Allocate dev_opp from _add_device_opp()

There is no need to complicate _opp_add_dynamic() with allocation of
dev_opp as well. Allocate it from _add_device_opp() instead.

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