diff options
| author | Dmitriy Gruzman <dgruzman@motorola.com> | 2014-02-20 20:38:12 -0600 | 
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-05 17:47:24 -0600 | 
| commit | 40cc25d78a9deb73b67c75222eced3cb745c6087 (patch) | |
| tree | 07ef69d3ca06b928aed607dd63929db154467148 | |
| parent | 3b9bf09c50f8548aae7862111938fac838b6794f (diff) | |
| download | olio-linux-3.10-40cc25d78a9deb73b67c75222eced3cb745c6087.tar.xz olio-linux-3.10-40cc25d78a9deb73b67c75222eced3cb745c6087.zip  | |
IKXCLOCK-298 max17042_battery: Add ONESHOT flag to threaded irq request
Add the flag since requesting a threaded interrupt without a primary handler and
without IRQF_ONESHOT set returns an error now.
Change-Id: If68f91eeebd7c323aa49c49503646fd73d41cd7d
Signed-off-by: Dmitriy Gruzman <dgruzman@motorola.com>
| -rw-r--r-- | drivers/power/max17042_battery.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c index d664ef58afa..04e6acf6b95 100644 --- a/drivers/power/max17042_battery.c +++ b/drivers/power/max17042_battery.c @@ -751,7 +751,8 @@ static int max17042_probe(struct i2c_client *client,  	if (client->irq) {  		ret = request_threaded_irq(client->irq, NULL,  						max17042_thread_handler, -						IRQF_TRIGGER_FALLING, +						IRQF_TRIGGER_FALLING | +						IRQF_ONESHOT,  						chip->battery.name, chip);  		if (!ret) {  			reg =  max17042_read_reg(client, MAX17042_CONFIG);  |