ASoC: rockchip: disable clock on error
authorStefan Potyra <Stefan.Potyra@elektrobit.com>
Wed, 6 Dec 2017 15:03:24 +0000 (16:03 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 6 Dec 2017 15:25:48 +0000 (15:25 +0000)
commitc7b92172a61b91936be985cb9bc499a4ebc6489b
tree927cc2940609c0c4e94c52cd7d916ee187774842
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
ASoC: rockchip: disable clock on error

Disable the clocks in  rk_spdif_probe when an error occurs after one
of the clocks has been enabled previously.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: f874b80e1571 ASoC: rockchip: Add rockchip SPDIF transceiver driver
Signed-off-by: Stefan Potyra <Stefan.Potyra@elektrobit.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c