Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108951
b: refs/heads/master
c: b42f931
h: refs/heads/master
i:
  108949: 4e071f3
  108947: 4dd53e3
  108943: a4ae7d2
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Aug 20, 2008
1 parent 7c5a7ec commit 8723093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14bac5acfdb6a40be64acc042c6db73f1a68f6a4
refs/heads/master: b42f931737bea8ca3982449d63ec46410d13e891
10 changes: 5 additions & 5 deletions trunk/drivers/rtc/rtc-ds1374.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int ds1374_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
int cr, sr;
int ret = 0;

if (client->irq < 0)
if (client->irq <= 0)
return -EINVAL;

mutex_lock(&ds1374->mutex);
Expand Down Expand Up @@ -212,7 +212,7 @@ static int ds1374_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
int cr;
int ret = 0;

if (client->irq < 0)
if (client->irq <= 0)
return -EINVAL;

ret = ds1374_read_time(dev, &now);
Expand Down Expand Up @@ -381,7 +381,7 @@ static int ds1374_probe(struct i2c_client *client,
if (ret)
goto out_free;

if (client->irq >= 0) {
if (client->irq > 0) {
ret = request_irq(client->irq, ds1374_irq, 0,
"ds1374", client);
if (ret) {
Expand All @@ -401,7 +401,7 @@ static int ds1374_probe(struct i2c_client *client,
return 0;

out_irq:
if (client->irq >= 0)
if (client->irq > 0)
free_irq(client->irq, client);

out_free:
Expand All @@ -414,7 +414,7 @@ static int __devexit ds1374_remove(struct i2c_client *client)
{
struct ds1374 *ds1374 = i2c_get_clientdata(client);

if (client->irq >= 0) {
if (client->irq > 0) {
mutex_lock(&ds1374->mutex);
ds1374->exiting = 1;
mutex_unlock(&ds1374->mutex);
Expand Down

0 comments on commit 8723093

Please sign in to comment.