pinctrl: baytrail: Fix compilation warnings when !CONFIG_PM
commitec879f1272283c040bc70e1a1fff5edbb547be59
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 13 Oct 2015 14:51:26 +0000 (13 17:51 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Oct 2015 20:54:33 +0000 (16 22:54 +0200)
treeebb97e03777cae174d5079727566a31cf43939fc
parentf487bbf309759153f56bac7d7ba5ee63196ce584
pinctrl: baytrail: Fix compilation warnings when !CONFIG_PM

When CONFIG_PM is not set we get following compilation warnings:

 warning: â€˜byt_gpio_runtime_suspend’ defined but not used [-Wunused-function]
 warning: â€˜byt_gpio_runtime_resume’ defined but not used [-Wunused-function]

Fix this by guarding byt_gpio_runtime_suspend()/byt_gpio_runtime_resume()
with #ifdef CONFIG_PM.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c