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 <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>
This commit is contained in:
parent
68cacb5cf5
commit
83d1b65d4c
@ -2131,7 +2131,7 @@ static int wm8903_i2c_probe(struct i2c_client *i2c)
|
|||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
dev_err(wm8903->dev, "Failed to request IRQ: %d\n",
|
dev_err(wm8903->dev, "Failed to request IRQ: %d\n",
|
||||||
ret);
|
ret);
|
||||||
return ret;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable write sequencer interrupts */
|
/* Enable write sequencer interrupts */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user