Blackfin arch: Add label to call new GPIO API
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
This commit is contained in:
parent
40d63406a0
commit
6782ea9ae8
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue