Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130567
b: refs/heads/master
c: 33763d5
h: refs/heads/master
i:
  130565: 108c6c3
  130563: 65a8ae6
  130559: 8813e85
v: v3
  • Loading branch information
Phil Sutter authored and Ralf Baechle committed Jan 30, 2009
1 parent c85e457 commit 57ca582
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4aa0f4d7264bc4f54603de5db1ffcaf8912ddd23
refs/heads/master: 33763d571da995913299cd0509425decfa9e4be0
8 changes: 4 additions & 4 deletions trunk/arch/mips/rb532/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ static int rb532_gpio_direction_input(struct gpio_chip *chip, unsigned offset)

gpch = container_of(chip, struct rb532_gpio_chip, chip);

if (rb532_get_bit(offset, gpch->regbase + GPIOFUNC))
return 1; /* alternate function, GPIOCFG is ignored */
/* disable alternate function in case it's set */
rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC);

rb532_set_bit(0, offset, gpch->regbase + GPIOCFG);
return 0;
Expand All @@ -186,8 +186,8 @@ static int rb532_gpio_direction_output(struct gpio_chip *chip,

gpch = container_of(chip, struct rb532_gpio_chip, chip);

if (rb532_get_bit(offset, gpch->regbase + GPIOFUNC))
return 1; /* alternate function, GPIOCFG is ignored */
/* disable alternate function in case it's set */
rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC);

/* set the initial output value */
rb532_set_bit(value, offset, gpch->regbase + GPIOD);
Expand Down

0 comments on commit 57ca582

Please sign in to comment.