ASoC: kirkwood: fix external clock probe defer
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 23 Oct 2019 13:46:44 +0000 (14:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:36:49 +0000 (15:36 +0100)
commitd7c8540ceb631e1b8d054845c871c01f3c1175ee
treeb2e2c506b1897970345303adf3af1268d30f92e4
parent533cdfe9cc126a9e19b54a8958684cd1baa29500
ASoC: kirkwood: fix external clock probe defer

[ Upstream commit 4523817d51bc3b2ef38da768d004fda2c8bc41de ]

When our call to get the external clock fails, we forget to clean up
the enabled internal clock correctly.  Enable the clock after we have
obtained all our resources.

Fixes: 84aac6c79bfd ("ASoC: kirkwood: fix loss of external clock at probe time")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1iNGyK-0004oF-6A@rmk-PC.armlinux.org.uk
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/kirkwood/kirkwood-i2s.c