Skip to content

Commit

Permalink
sh: pfc: Build fix for pinctrl_remove_gpio_range() changes.
Browse files Browse the repository at this point in the history
pinctrl_remove_gpio_range() is now handled by the pinctrl core in the
unreg path for some reason, so use that instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
pmundt committed Jul 25, 2012
1 parent bdc0077 commit 92f53a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/sh/pfc/pinctrl.c
Expand Up @@ -276,7 +276,6 @@ static int sh_pfc_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin,
unsigned long config)
{
struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev);
struct sh_pfc *pfc = pmx->pfc;

/* Validate the new type */
if (config >= PINMUX_FLAG_TYPE)
Expand Down Expand Up @@ -481,7 +480,6 @@ static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev)
{
struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev);

pinctrl_remove_gpio_range(pmx->pctl, &sh_pfc_gpio_range);
pinctrl_unregister(pmx->pctl);

platform_set_drvdata(pdev, NULL);
Expand Down

0 comments on commit 92f53a8

Please sign in to comment.