diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2007-08-27 04:46:17 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-08-27 04:46:17 -0400 |
commit | 4d5f4ed3fb797021523fc9fb6804047e8e35b33d (patch) | |
tree | 977d9f891411becd39fab3095a3a1a7dc2f524d2 /arch/blackfin/kernel | |
parent | 168f1212c098727f2509fe0f66bd30d7209a8159 (diff) |
Blackfin arch: extract gpio number from PIN function
Singed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index d9284d7dc9fc..0d1e87b9c93d 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c | |||
@@ -902,7 +902,9 @@ EXPORT_SYMBOL(gpio_direction_output); | |||
902 | */ | 902 | */ |
903 | void bfin_gpio_reset_spi0_ssel1(void) | 903 | void bfin_gpio_reset_spi0_ssel1(void) |
904 | { | 904 | { |
905 | port_setup(P_SPI0_SSEL1, GPIO_USAGE); | 905 | u16 gpio = P_IDENT(P_SPI0_SSEL1); |
906 | gpio_bankb[gpio_bank(P_SPI0_SSEL1)]->data_set = gpio_bit(P_SPI0_SSEL1); | 906 | |
907 | port_setup(gpio, GPIO_USAGE); | ||
908 | gpio_bankb[gpio_bank(gpio)]->data_set = gpio_bit(gpio); | ||
907 | udelay(1); | 909 | udelay(1); |
908 | } | 910 | } |