extcon: rt8973: Add IRQF_ONESHOT to interrupt flags

This patch adds IRQF_ONESHOT if no primary handler is provided for request
threaded irq.

Signed-off-by: Saurabh Sengar <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
This commit is contained in:
Saurabh Sengar 2015-11-25 23:31:11 +05:30 • committed by Chanwoo Choi
commit 5f01e6bc33

View 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,