|
@@ -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;
|
|
@@ -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.
|
|
@@ -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;
|
|
|
}
|
|
|
|