diff options
author | Matthias Reichl <hias@horus.com> | 2020-02-20 23:29:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-11 16:15:09 +0300 |
commit | 8a8a6cf184f4bd0778c7aa85b7409ff7b147f87b (patch) | |
tree | 9d7e9655717d9b09c1e8593f51bcef75f496efe1 /Kbuild | |
parent | 9191f26b9d90fef35519846a07b5ea25117072e6 (diff) | |
download | linux-8a8a6cf184f4bd0778c7aa85b7409ff7b147f87b.tar.xz |
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>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions