Skip to content

Commit

Permalink
pinctrl: pinctrl-single: fix compile warning when no CONFIG_PM
Browse files Browse the repository at this point in the history
This warning has been introduced by the commit
 0f9bc4b pinctrl: single: adopt pinctrl sleep mode management

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Jean-Francois Moine authored and Linus Walleij committed Jul 22, 2013
1 parent 74b8435 commit 8cb440a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pinctrl/pinctrl-single.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,7 @@ static int pcs_add_gpio_func(struct device_node *node, struct pcs_device *pcs)
return ret;
}

#ifdef CONFIG_PM
static int pinctrl_single_suspend(struct platform_device *pdev,
pm_message_t state)
{
Expand All @@ -1505,6 +1506,7 @@ static int pinctrl_single_resume(struct platform_device *pdev)

return pinctrl_force_default(pcs->pctl);
}
#endif

static int pcs_probe(struct platform_device *pdev)
{
Expand Down

0 comments on commit 8cb440a

Please sign in to comment.