]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-spdif: Fix crash on suspend
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 26 Jan 2016 12:54:15 +0000 (13:54 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jan 2016 11:30:02 +0000 (11:30 +0000)
commite41b5fe85a6391a473746288b22e2b33f8680ec5
treef19a38f653d2f50169ec10b4f5866ed6f2ec644a
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
ASoC: imx-spdif: Fix crash on suspend

When registering a ASoC card the driver data of the parent device is set to
point to the card. This driver data is used in the
snd_soc_suspend()/resume() callbacks.

The imx-spdif driver overwrites the driver data with custom data which
causes snd_soc_suspend() to crash.  Since the custom driver is not used
anywhere simply deleting the line which sets the custom driver data fixes
the issue.

Fixes: b5605ea09c1a ("ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver")
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-spdif.c