diff options
author | Graf Yang <graf.yang@analog.com> | 2009-01-07 10:14:38 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:38 -0500 |
commit | 9570ff4af6920c5992eb91141d71fc94127d864b (patch) | |
tree | 8ab0887035ab00a655eb8f78b39ed0acbb0b3bed /arch/blackfin/include/asm/gpio.h | |
parent | 94106e0fb6b863348a566617ca6bf431c37ddc5e (diff) |
Blackfin arch: Allow a gpio pin be requested both as gpio and irq.
[Mike Frysinger <vapier.adi@gmail.com>:
- use KERN_NOTICE when using gpios as both irq and non
rather than KERN_ERR
- embedded newlines in printk() does not fly]
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/include/asm/gpio.h')
-rw-r--r-- | arch/blackfin/include/asm/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h index ec2ab465709e..4ee687f34fee 100644 --- a/arch/blackfin/include/asm/gpio.h +++ b/arch/blackfin/include/asm/gpio.h | |||
@@ -548,6 +548,8 @@ struct gpio_port_s { | |||
548 | 548 | ||
549 | int bfin_gpio_request(unsigned gpio, const char *label); | 549 | int bfin_gpio_request(unsigned gpio, const char *label); |
550 | void bfin_gpio_free(unsigned gpio); | 550 | void bfin_gpio_free(unsigned gpio); |
551 | int bfin_gpio_irq_request(unsigned gpio, const char *label); | ||
552 | void bfin_gpio_irq_free(unsigned gpio); | ||
551 | int bfin_gpio_direction_input(unsigned gpio); | 553 | int bfin_gpio_direction_input(unsigned gpio); |
552 | int bfin_gpio_direction_output(unsigned gpio, int value); | 554 | int bfin_gpio_direction_output(unsigned gpio, int value); |
553 | int bfin_gpio_get_value(unsigned gpio); | 555 | int bfin_gpio_get_value(unsigned gpio); |