projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74b8435
)
pinctrl: pinctrl-single: fix compile warning when no CONFIG_PM
author
Jean-Francois Moine
<moinejf@free.fr>
Mon, 15 Jul 2013 08:14:26 +0000
(10:14 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 22 Jul 2013 21:00:55 +0000
(23:00 +0200)
This warning has been introduced by the commit
0f9bc4bcdf4f
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>
drivers/pinctrl/pinctrl-single.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-single.c
b/drivers/pinctrl/pinctrl-single.c
index 6866548fab31669d5141a7c8af21c10e0caa895d..7323cca440b5929ef7248d6d73662d200c01109b 100644
(file)
--- a/
drivers/pinctrl/pinctrl-single.c
+++ b/
drivers/pinctrl/pinctrl-single.c
@@
-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)
{
@@
-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)
{