mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
max17042_battery: Add IRQF_ONESHOT flag to use default irq handler
This patch adds IRQF_ONESHOT flag to max17042's irq since it uses primary default handler. Without this flag, requesting irq will be denied with returning error. Signed-off-by: Jonghwa Lee <[email protected]> Signed-off-by: MyungJoo Ham <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
4ea8126601
commit
26740dbb50
1 changed files with 3 additions and 3 deletions
|
|
@ -741,9 +741,9 @@ static int max17042_probe(struct i2c_client *client,
|
|||
|
||||
if (client->irq) {
|
||||
ret = request_threaded_irq(client->irq, NULL,
|
||||
max17042_thread_handler,
|
||||
IRQF_TRIGGER_FALLING,
|
||||
chip->battery.name, chip);
|
||||
max17042_thread_handler,
|
||||
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
|
||||
chip->battery.name, chip);
|
||||
if (!ret) {
|
||||
regmap_read(chip->regmap, MAX17042_CONFIG, &val);
|
||||
val |= CONFIG_ALRT_BIT_ENBL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue