From a7143c71a53b0baaf2efbc457f671d2a90567e6a Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Thu, 11 Nov 2021 21:15:08 +0800 Subject: [PATCH] ASoC: es8323: Fix headphone irq err It's optional, so, do nothing when this gpio-irq omitted. Signed-off-by: Sugar Zhang Change-Id: If82c6ef3610aa47e1be3266b485305514bb1717d --- sound/soc/codecs/es8323.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/es8323.c b/sound/soc/codecs/es8323.c index 41cdb44ef0c7..9e387e45f1d8 100644 --- a/sound/soc/codecs/es8323.c +++ b/sound/soc/codecs/es8323.c @@ -988,7 +988,7 @@ static int es8323_i2c_probe(struct i2c_client *i2c, hp_irq = gpiod_to_irq(es8323->hp_det_gpio); - if (hp_irq) { + if (hp_irq > 0) { ret = devm_request_threaded_irq(&i2c->dev, hp_irq, NULL, hp_det_irq_handler, IRQ_TYPE_EDGE_BOTH |