From: Charles Keepax Date: Thu, 5 Mar 2015 15:39:22 +0000 (+0000) Subject: ASoC: wm8804: Fix small issues in probe error paths X-Git-Tag: omap-for-v4.2/o2_dc~120^2~1^2^5~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcf638f9953eb7f3b97fad7e970ae59dcdbd70c1;p=pandora-kernel.git ASoC: wm8804: Fix small issues in probe error paths This patch fixes some small issues on the probe error paths. Firstly, fail probe if we can't register the regulator notifiers as this will cause the cache to never be synchronised which will result in odd behaviour if the regulators are controllable. Secondly, we don't need to call regulator_bulk_disable if the enable fails, because the regulator core will handle this clean up for us. Finally, we need to disable the regulators if snd_soc_register_codecs fails. Signed-off-by: Charles Keepax Signed-off-by: Mark Brown --- Reading git-diff-tree failed