pinctrl: intel: Fix compilation warning when !CONFIG_PM_SLEEP
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 13 Oct 2015 14:51:25 +0000 (17:51 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Oct 2015 20:53:40 +0000 (22:53 +0200)
commitf487bbf309759153f56bac7d7ba5ee63196ce584
tree84423cfb4ad04becfefd9049c885c4a4511580f0
parent11091fb0a1227d569d09353e1ce1f88694a033dc
pinctrl: intel: Fix compilation warning when !CONFIG_PM_SLEEP

We get following warning when CONFIG_PM_SLEEP is not set

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

Since the function is only called from intel_pinctrl_resume() move it
inside CONFIG_PM_SLEEP guard as well.

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