diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2013-12-17 22:53:53 -0500 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-12-23 21:59:41 -0500 |
commit | 26740dbb50f2421f1a33e23ac5ece609761fc1d5 (patch) | |
tree | 4cf1ca04e3a6418100acc83aaba301cb3de0b56c /drivers/power/max17042_battery.c | |
parent | 4ea81266010ae41a48c7ce393335dfe241931209 (diff) |
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 <jonghwa3.lee@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/max17042_battery.c')
-rw-r--r-- | drivers/power/max17042_battery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c index e0b22f9b6fdd..66da691c41cf 100644 --- a/drivers/power/max17042_battery.c +++ b/drivers/power/max17042_battery.c | |||
@@ -741,9 +741,9 @@ static int max17042_probe(struct i2c_client *client, | |||
741 | 741 | ||
742 | if (client->irq) { | 742 | if (client->irq) { |
743 | ret = request_threaded_irq(client->irq, NULL, | 743 | ret = request_threaded_irq(client->irq, NULL, |
744 | max17042_thread_handler, | 744 | max17042_thread_handler, |
745 | IRQF_TRIGGER_FALLING, | 745 | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, |
746 | chip->battery.name, chip); | 746 | chip->battery.name, chip); |
747 | if (!ret) { | 747 | if (!ret) { |
748 | regmap_read(chip->regmap, MAX17042_CONFIG, &val); | 748 | regmap_read(chip->regmap, MAX17042_CONFIG, &val); |
749 | val |= CONFIG_ALRT_BIT_ENBL; | 749 | val |= CONFIG_ALRT_BIT_ENBL; |