summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGopikrishnaiah Anandan <agopik@codeaurora.org>2013-07-25 15:46:50 -0400
committerStephen Boyd <sboyd@codeaurora.org>2013-09-04 17:15:31 -0700
commitc35c12ce0653a3177e595a631b0d12db8b536070 (patch)
tree52a781995655730cb56f0e7d4c83f1fccfa6a1bd /drivers
parentf9e82037b4642df54eb2b12e6dee82793d3370b5 (diff)
ASoC: wcd9xxx: Fix codec type detection failure error handling
Changes fixes the error handling exit point when the codec type is not found. Change-Id: I2923dc16880fe312741188b360620ea924fe4ca3 CRs-fixed: 517978 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/wcd9xxx-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wcd9xxx-core.c b/drivers/mfd/wcd9xxx-core.c
index 866480b97331..b5f34c3b02e0 100644
--- a/drivers/mfd/wcd9xxx-core.c
+++ b/drivers/mfd/wcd9xxx-core.c
@@ -470,7 +470,7 @@ static int wcd9xxx_device_init(struct wcd9xxx *wcd9xxx)
found = wcd9xxx_check_codec_type(wcd9xxx, &version);
if (!found) {
ret = -ENODEV;
- goto err_irq;
+ goto err;
} else {
wcd9xxx->codec_type = found;
wcd9xxx->version = version;