We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81312ea commit bed41f0Copy full SHA for bed41f0
drivers/power/supply/max17042_battery.c
@@ -1103,14 +1103,7 @@ static int max17042_probe(struct i2c_client *client)
1103
}
1104
1105
if (client->irq) {
1106
- unsigned int flags = IRQF_ONESHOT;
1107
-
1108
- /*
1109
- * On ACPI systems the IRQ may be handled by ACPI-event code,
1110
- * so we need to share (if the ACPI code is willing to share).
1111
- */
1112
- if (acpi_id)
1113
- flags |= IRQF_SHARED | IRQF_PROBE_SHARED;
+ unsigned int flags = IRQF_ONESHOT | IRQF_SHARED | IRQF_PROBE_SHARED;
1114
1115
ret = devm_request_threaded_irq(&client->dev, client->irq,
1116
NULL,
0 commit comments