Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33206
b: refs/heads/master
c: 2566d36
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and Jaroslav Kysela committed Aug 3, 2006
1 parent e226dfa commit ea1e778
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 59feddb25f9d925e86ee22596802405788bc050f
refs/heads/master: 2566d36ab4f0b90141bb59a5f7342255751fbf45
7 changes: 5 additions & 2 deletions trunk/sound/aoa/core/snd-aoa-gpio-feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ static struct device_node *get_gpio(char *name,

static void get_irq(struct device_node * np, int *irqptr)
{
*irqptr = irq_of_parse_and_map(np, 0);
if (np)
*irqptr = irq_of_parse_and_map(np, 0);
else
*irqptr = NO_IRQ;
}

/* 0x4 is outenable, 0x1 is out, thus 4 or 5 */
Expand Down Expand Up @@ -322,7 +325,7 @@ static int ftr_set_notify(struct gpio_runtime *rt,
return -EINVAL;
}

if (irq == -1)
if (irq == NO_IRQ)
return -ENODEV;

mutex_lock(&notif->mutex);
Expand Down

0 comments on commit ea1e778

Please sign in to comment.