]> git.openpandora.org Git - pandora-kernel.git/commitdiff
ASoC: Intel: wrap runtime_pm usage count under CONFIG_PM
authorVinod Koul <vinod.koul@intel.com>
Wed, 25 Feb 2015 16:07:52 +0000 (21:37 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 26 Feb 2015 01:59:37 +0000 (10:59 +0900)
The struct dev_pm_ops defines usage_count only when CONFIG_PM is defined. So
we should use this variable only in cases where this falg is true.
So we define a local variable and read the value under this flag. In non PM
cases, we set this to 1.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

No differences found