summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTracy Yi2018-12-16 22:07:49 -0600
committerTracy Yi2018-12-16 22:07:49 -0600
commiteeafea1f02e17aa551f655727247183a700f6a27 (patch)
tree54902ffd2837888e9603209ead76e2f69ac476f4
parent0a4f6f569aaf4d22ff5097aa327d52f200ba3aa9 (diff)
downloadtas2560-android-driver-master.tar.gz
tas2560-android-driver-master.tar.xz
tas2560-android-driver-master.zip
Fix irq register crash in some platformHEADmaster
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
-rwxr-xr-xtas2560-regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tas2560-regmap.c b/tas2560-regmap.c
index d49d69f..2f92ec4 100755
--- a/tas2560-regmap.c
+++ b/tas2560-regmap.c
@@ -526,6 +526,7 @@ static int tas2560_i2c_probe(struct i2c_client *client,
526 gpio_direction_input(pTAS2560->mnIRQGPIO); 526 gpio_direction_input(pTAS2560->mnIRQGPIO);
527 pTAS2560->mnIRQ = gpio_to_irq(pTAS2560->mnIRQGPIO); 527 pTAS2560->mnIRQ = gpio_to_irq(pTAS2560->mnIRQGPIO);
528 dev_dbg(pTAS2560->dev, "irq = %d\n", pTAS2560->mnIRQ); 528 dev_dbg(pTAS2560->dev, "irq = %d\n", pTAS2560->mnIRQ);
529 INIT_DELAYED_WORK(&pTAS2560->irq_work, irq_work_routine);
529 nResult = request_threaded_irq(pTAS2560->mnIRQ, tas2560_irq_handler, 530 nResult = request_threaded_irq(pTAS2560->mnIRQ, tas2560_irq_handler,
530 NULL, IRQF_TRIGGER_HIGH | IRQF_ONESHOT, 531 NULL, IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
531 client->name, pTAS2560); 532 client->name, pTAS2560);
@@ -535,7 +536,6 @@ static int tas2560_i2c_probe(struct i2c_client *client,
535 goto free_gpio; 536 goto free_gpio;
536 } 537 }
537 disable_irq_nosync(pTAS2560->mnIRQ); 538 disable_irq_nosync(pTAS2560->mnIRQ);
538 INIT_DELAYED_WORK(&pTAS2560->irq_work, irq_work_routine);
539 } 539 }
540 540
541 pTAS2560->read = tas2560_dev_read; 541 pTAS2560->read = tas2560_dev_read;