Skip to content

Commit

Permalink
Blackfin arch: extract gpio number from PIN function
Browse files Browse the repository at this point in the history
Singed-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 Aug 27, 2007
1 parent 168f121 commit 4d5f4ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/blackfin/kernel/bfin_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 4d5f4ed

Please sign in to comment.