Matthias Reichl 5c17ed40a9 ASoC: pcm512x: Fix unbalanced regulator enable call in probe error path
commit ac0a68997935c4acb92eaae5ad8982e0bb432d56 upstream.

When we get a clock error during probe we have to call
regulator_bulk_disable before bailing out, otherwise we trigger
a warning in regulator_put.

Fix this by using "goto err" like in the error cases above.

Fixes: 5a3af1293194d ("ASoC: pcm512x: Add PCM512x driver")
Signed-off-by: Matthias Reichl <hias@horus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200220202956.29233-1-hias@horus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-11 18:03:06 +01:00
..
2016-11-09 13:50:14 +00:00
2017-06-13 19:30:53 +01:00
2016-08-08 11:55:20 +01:00
2016-05-30 16:15:55 +01:00
2017-05-14 19:14:10 +09:00
2017-07-18 14:46:20 +01:00
2017-10-21 10:59:02 +01:00
2016-10-24 18:03:14 +01:00
2016-10-24 18:31:38 +01:00
2017-04-05 18:21:01 +01:00
2016-06-26 12:28:13 +01:00
2018-01-02 20:31:04 +01:00
2018-10-18 09:16:21 +02:00
2017-03-20 11:24:05 +00:00
2020-01-12 12:11:57 +01:00
2017-04-05 18:22:27 +01:00