Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372526
b: refs/heads/master
c: 24d6b36
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart committed Mar 15, 2013
1 parent 7281f20 commit 109cd69
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 2119f7c9afaf4c5fe88e9ffec1f34c5bc6b02f78
refs/heads/master: 24d6b36e91b0503cd1c88b34fa793c0c65fa767d
5 changes: 1 addition & 4 deletions trunk/drivers/pinctrl/sh-pfc/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,13 @@ static void sh_gpio_free(struct gpio_chip *gc, unsigned offset)
{
struct sh_pfc *pfc = gpio_to_pfc(gc);
unsigned long flags;
int pinmux_type;

if (offset < pfc->info->nr_pins)
return pinctrl_free_gpio(offset);

spin_lock_irqsave(&pfc->lock, flags);

pinmux_type = pfc->info->gpios[offset].flags & PINMUX_FLAG_TYPE;

sh_pfc_config_gpio(pfc, offset, pinmux_type, GPIO_CFG_FREE);
sh_pfc_config_gpio(pfc, offset, PINMUX_TYPE_FUNCTION, GPIO_CFG_FREE);

spin_unlock_irqrestore(&pfc->lock, flags);
}
Expand Down

0 comments on commit 109cd69

Please sign in to comment.