Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372518
b: refs/heads/master
c: d785fdb
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart committed Mar 15, 2013
1 parent 4aa38b7 commit 0816ac4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: e3e89ae43e132b80039614098597ad2fec6cfbb1
refs/heads/master: d785fdb5d8ebdb0081624e9d8b220ff199c22645
5 changes: 0 additions & 5 deletions trunk/drivers/pinctrl/sh-pfc/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ static void sh_pfc_map_one_gpio(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx,
/* pinmux ranges -> pinctrl pin descs */
static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
{
unsigned long flags;
int i;

pmx->nr_pads = pfc->info->last_gpio - pfc->info->first_gpio + 1;
Expand All @@ -346,8 +345,6 @@ static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
return -ENOMEM;
}

spin_lock_irqsave(&pfc->lock, flags);

/*
* We don't necessarily have a 1:1 mapping between pin and linux
* GPIO number, as the latter maps to the associated enum_id.
Expand All @@ -368,8 +365,6 @@ static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
sh_pfc_map_one_gpio(pfc, pmx, gpio, i);
}

spin_unlock_irqrestore(&pfc->lock, flags);

return 0;
}

Expand Down

0 comments on commit 0816ac4

Please sign in to comment.