Skip to content

Commit

Permalink
Blackfin arch: Add label to call new GPIO API
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Jul 24, 2007
1 parent 40d6340 commit 6782ea9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/mach-common/ints-priority-dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static unsigned int bf561_gpio_irq_startup(unsigned int irq)

if (!(gpio_enabled[gpio_bank(gpionr)] & gpio_bit(gpionr))) {

ret = gpio_request(gpionr, NULL);
ret = gpio_request(gpionr, "IRQ");
if (ret)
return ret;

Expand Down Expand Up @@ -261,7 +261,7 @@ static int bf561_gpio_irq_type(unsigned int irq, unsigned int type)

if (!(gpio_enabled[gpio_bank(gpionr)] & gpio_bit(gpionr))) {

ret = gpio_request(gpionr, NULL);
ret = gpio_request(gpionr, "IRQ");
if (ret)
return ret;

Expand Down
8 changes: 4 additions & 4 deletions arch/blackfin/mach-common/ints-priority-sc.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static unsigned int bfin_gpio_irq_startup(unsigned int irq)
u16 gpionr = irq - IRQ_PF0;

if (!(gpio_enabled[gpio_bank(gpionr)] & gpio_bit(gpionr))) {
ret = gpio_request(gpionr, NULL);
ret = gpio_request(gpionr, "IRQ");
if (ret)
return ret;
}
Expand Down Expand Up @@ -377,7 +377,7 @@ static int bfin_gpio_irq_type(unsigned int irq, unsigned int type)
if (type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING |
IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) {
if (!(gpio_enabled[gpio_bank(gpionr)] & gpio_bit(gpionr))) {
ret = gpio_request(gpionr, NULL);
ret = gpio_request(gpionr, "IRQ");
if (ret)
return ret;
}
Expand Down Expand Up @@ -587,7 +587,7 @@ static unsigned int bfin_gpio_irq_startup(unsigned int irq)
}

if (!(gpio_enabled[gpio_bank(gpionr)] & gpio_bit(gpionr))) {
ret = gpio_request(gpionr, NULL);
ret = gpio_request(gpionr, "IRQ");
if (ret)
return ret;
}
Expand Down Expand Up @@ -627,7 +627,7 @@ static int bfin_gpio_irq_type(unsigned int irq, unsigned int type)
if (type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING |
IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) {
if (!(gpio_enabled[gpio_bank(gpionr)] & gpio_bit(gpionr))) {
ret = gpio_request(gpionr, NULL);
ret = gpio_request(gpionr, "IRQ");
if (ret)
return ret;
}
Expand Down

0 comments on commit 6782ea9

Please sign in to comment.