Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362998
b: refs/heads/master
c: 28d0c14
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Linus Walleij committed Apr 3, 2013
1 parent 8693693 commit 9070a0d
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: 175ca83c0b6ab3c2af2d9e1ffff4d274910bbc10
refs/heads/master: 28d0c14b43a04deac8afe27ab700cc7638a7f4ba
7 changes: 5 additions & 2 deletions trunk/drivers/pinctrl/pinctrl-coh901.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,16 @@ static int u300_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
struct u300_gpio_port *port = NULL;
struct list_head *p;
int retirq;
bool found = false;

list_for_each(p, &gpio->port_list) {
port = list_entry(p, struct u300_gpio_port, node);
if (port->number == portno)
if (port->number == portno) {
found = true;
break;
}
}
if (port == NULL) {
if (!found) {
dev_err(gpio->dev, "could not locate port for GPIO %d IRQ\n",
offset);
return -EINVAL;
Expand Down

0 comments on commit 9070a0d

Please sign in to comment.