extcon: rt8973: Add IRQF_ONESHOT to interrupt flags
authorSaurabh Sengar <saurabh.truth@gmail.com>
Wed, 25 Nov 2015 18:01:11 +0000 (23:31 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Nov 2015 01:42:00 +0000 (10:42 +0900)
This patch adds IRQF_ONESHOT if no primary handler is provided for request
threaded irq.

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-rt8973a.c

index 36bf1d63791c66c639d761bc77b157ed125b1344..e1bb82809bef53ad2a853de2442a7ecc2e4a7597 100644 (file)
@@ -603,7 +603,7 @@ static int rt8973a_muic_i2c_probe(struct i2c_client *i2c,
 
                ret = devm_request_threaded_irq(info->dev, virq, NULL,
                                                rt8973a_muic_irq_handler,
-                                               IRQF_NO_SUSPEND,
+                                               IRQF_NO_SUSPEND | IRQF_ONESHOT,
                                                muic_irq->name, info);
                if (ret) {
                        dev_err(info->dev,