projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edb250
)
3036: fix hym gpio judgement
author
wdc
<wdc@rock-chips.com>
Sat, 12 Jul 2014 06:57:51 +0000
(14:57 +0800)
committer
wdc
<wdc@rock-chips.com>
Sat, 12 Jul 2014 06:57:51 +0000
(14:57 +0800)
drivers/rtc/rtc-HYM8563.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-HYM8563.c
b/drivers/rtc/rtc-HYM8563.c
index d30da29f39ee006db0e45ddeb61bbb9cc412130b..c20f4b867bfe6ea9fd21a023ad0bcb302408106a 100755
(executable)
--- a/
drivers/rtc/rtc-HYM8563.c
+++ b/
drivers/rtc/rtc-HYM8563.c
@@
-592,7
+592,7
@@
static int hym8563_probe(struct i2c_client *client, const struct i2c_device_id
}
client->irq = of_get_named_gpio_flags(np, "irq_gpio", 0,(enum of_gpio_flags *)&irq_flags);
-
if(client->irq <
0)
+
if(client->irq >=
0)
{
hym8563->irq = gpio_to_irq(client->irq);
result = devm_request_threaded_irq(&client->dev, hym8563->irq, NULL, hym8563_wakeup_irq, irq_flags | IRQF_ONESHOT, client->dev.driver->name,hym8563 );