Skip to content

Commit

Permalink
pinctrl: sh-pfc: Kill unused variable in sh_pfc_remove()
Browse files Browse the repository at this point in the history
If CONFIG_PINCTRL_SH_PFC_GPIO=n:

    drivers/pinctrl/sh-pfc/core.c: In function 'sh_pfc_remove':
    drivers/pinctrl/sh-pfc/core.c:649:17: warning: unused variable 'pfc' [-Wunused-variable]

Fixes: 67ec8d7 ("pinctrl: ish-pfc: Use devm_pinctrl_register() for pinctrl registration")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Linus Walleij committed Apr 29, 2016
1 parent 67668a5 commit 1acd010
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/pinctrl/sh-pfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,8 @@ static int sh_pfc_probe(struct platform_device *pdev)

static int sh_pfc_remove(struct platform_device *pdev)
{
struct sh_pfc *pfc = platform_get_drvdata(pdev);

#ifdef CONFIG_PINCTRL_SH_PFC_GPIO
sh_pfc_unregister_gpiochip(pfc);
sh_pfc_unregister_gpiochip(platform_get_drvdata(pdev));
#endif

return 0;
Expand Down

0 comments on commit 1acd010

Please sign in to comment.