projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68cacb5
)
ASoC: wm8903: Fix the error handling of wm8903_i2c_probe()
author
Zheyu Ma
<zheyuma97@gmail.com>
Tue, 10 May 2022 15:32:51 +0000
(23:32 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 11 May 2022 16:40:17 +0000
(17:40 +0100)
The driver should goto label 'err' when failing to request the irq.
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20220510153251.1741210-7-zheyuma97@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8903.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8903.c
b/sound/soc/codecs/wm8903.c
index ddcef11dce7c8a2c0bc0a4bee21d4973d327a19f..3c95c2aea5152c8a8f9546eb08c97c3fad71e378 100644
(file)
--- 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 */