From: Viresh Kumar Date: Wed, 10 Dec 2014 04:15:34 +0000 (+0530) Subject: PM / OPP: handle allocation of device_opp in a separate routine X-Git-Tag: omap-for-v3.19/fixes-rc1~33^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07cce74a7b259cb90029530e9549bf1d9a1b1c34;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed