mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ASoC: es8323: Fix headphone irq err
It's optional, so, do nothing when this gpio-irq omitted. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Change-Id: If82c6ef3610aa47e1be3266b485305514bb1717d
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user