commit | 07cce74a7b259cb90029530e9549bf1d9a1b1c34 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Wed Dec 10 09:45:34 2014 +0530 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Dec 10 22:18:34 2014 +0100 |
tree | 856337b31922ce8d57bd341c2e6860e18ff27001 | |
parent | 29df0ee1b14ab5cdc83c225258f42600825f45b2 [diff] |
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>