]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-mcasp: Correct pm status check in suspend callback
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 30 Apr 2015 08:57:41 +0000 (11:57 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 30 Apr 2015 20:08:56 +0000 (21:08 +0100)
commitf7fcfdb07f8c4aa3497dee130de87358ac342610
tree6b0ea6ebded3d6acf2e2113d641b029a82a4523e
parentdd4a0ac5a66093ba1477238fa2d0e835dd935ff6
ASoC: davinci-mcasp: Correct pm status check in suspend callback

pm_runtime_enabled() will only tell if the pm runtime has been enabled for
the device, which is done at probe time but will not tell the actual power
state of the device.
pm_runtime_active() provides this information.
This patch fixes a kernel crash when doing suspend when McASP is not
active.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c