Re: [PATCH] gpio: intel-mid: Fix build warning when !CONFIG_PM

2017-01-17 Thread Linus Walleij
On Mon, Jan 16, 2017 at 3:30 PM, Augusto Mecking Caringi wrote: > The only usage of function intel_gpio_runtime_idle() is here (in the > same file): > > static const struct dev_pm_ops intel_gpio_pm_ops = { > SET_RUNTIME_PM_OPS(NULL, NULL, intel_gpio_runtime_idle) > }; > > And when CONFIG_

Re: [PATCH] gpio: intel-mid: Fix build warning when !CONFIG_PM

2017-01-16 Thread Andy Shevchenko
On Mon, Jan 16, 2017 at 4:30 PM, Augusto Mecking Caringi wrote: > The only usage of function intel_gpio_runtime_idle() is here (in the > same file): > > static const struct dev_pm_ops intel_gpio_pm_ops = { > SET_RUNTIME_PM_OPS(NULL, NULL, intel_gpio_runtime_idle) > }; > > And when CONFIG_P

[PATCH] gpio: intel-mid: Fix build warning when !CONFIG_PM

2017-01-16 Thread Augusto Mecking Caringi
The only usage of function intel_gpio_runtime_idle() is here (in the same file): static const struct dev_pm_ops intel_gpio_pm_ops = { SET_RUNTIME_PM_OPS(NULL, NULL, intel_gpio_runtime_idle) }; And when CONFIG_PM is not set, the macro SET_RUNTIME_PM_OPS expands to nothing, causing the foll