ASoC: samsung: Add proper error paths to s3c24xx I2S driver
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 27 Jul 2017 17:13:38 +0000 (19:13 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jul 2017 09:58:31 +0000 (10:58 +0100)
commit6f187f7ef1c15dca9f720b18a7e928718fd1a8b3
treeb7945f5dac6ea2100fa75f962ea86a378c665b00
parent81ea6cc73c384e4093519e0c75394aa2a1941a10
ASoC: samsung: Add proper error paths to s3c24xx I2S driver

s3c2412_i2s_probe() might fail so driver has to revert work done by
s3c_i2sv2_probe() (clock enabling).  Missing doing this would lead to
clock enable in-balance.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/s3c-i2s-v2.c
sound/soc/samsung/s3c-i2s-v2.h
sound/soc/samsung/s3c2412-i2s.c