Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4d5f4ed3fb797021523fc9fb6804047e8e35b33d
Commit:     4d5f4ed3fb797021523fc9fb6804047e8e35b33d
Parent:     168f1212c098727f2509fe0f66bd30d7209a8159
Author:     Michael Hennerich <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 27 16:46:17 2007 +0800
Committer:  Bryan Wu <[EMAIL PROTECTED]>
CommitDate: Mon Aug 27 16:46:17 2007 +0800

    Blackfin arch: extract gpio number from PIN function
    
    Singed-off-by: Michael Hennerich <[EMAIL PROTECTED]>
    Signed-off-by: Bryan Wu <[EMAIL PROTECTED]>
---
 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 d9284d7..0d1e87b 100644
--- a/arch/blackfin/kernel/bfin_gpio.c
+++ b/arch/blackfin/kernel/bfin_gpio.c
@@ -902,7 +902,9 @@ EXPORT_SYMBOL(gpio_direction_output);
  */
 void bfin_gpio_reset_spi0_ssel1(void)
 {
-       port_setup(P_SPI0_SSEL1, GPIO_USAGE);
-       gpio_bankb[gpio_bank(P_SPI0_SSEL1)]->data_set = gpio_bit(P_SPI0_SSEL1);
+       u16 gpio = P_IDENT(P_SPI0_SSEL1);
+
+       port_setup(gpio, GPIO_USAGE);
+       gpio_bankb[gpio_bank(gpio)]->data_set = gpio_bit(gpio);
        udelay(1);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to