diff options
author | Zheyu Ma <[email protected]> | 2022-05-10 23:32:51 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-05-11 17:40:17 +0100 |
commit | 83d1b65d4cbe6fb0bbdacc18c1f4ad0450275d8f (patch) | |
tree | d0abf372a543ca9afbed190d8e4220f00dca52df | |
parent | 68cacb5cf5cf04aaa95be1fd76eff728dfddc613 (diff) |
ASoC: wm8903: Fix the error handling of wm8903_i2c_probe()
The driver should goto label 'err' when failing to request the irq.
Signed-off-by: Zheyu Ma <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/codecs/wm8903.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index ddcef11dce7c..3c95c2aea515 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -2131,7 +2131,7 @@ static int wm8903_i2c_probe(struct i2c_client *i2c) if (ret != 0) { dev_err(wm8903->dev, "Failed to request IRQ: %d\n", ret); - return ret; + goto err; } /* Enable write sequencer interrupts */ |