]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: pch: Build context save/restore only for PM
authorThierry Reding <treding@nvidia.com>
Thu, 2 Oct 2014 07:20:21 +0000 (09:20 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 2 Oct 2014 14:07:00 +0000 (16:07 +0200)
commita092e19b688be88f7329bd05f90cb92ebe1a4f5b
tree94f90a4cf6a2d5e2348d71c438fb3ad702ee5263
parent3a4b094d5d09b8e0d007b2ca3de4f42df3af46e6
gpio: pch: Build context save/restore only for PM

The pch_gpio_save_reg_conf() and pch_gpio_restore_reg_conf() functions
are only used in pch_gpio_suspend() and pch_gpio_resume(), respectively.
Since the latter are only built if PM is enabled, make the former build
under the same conditions.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pch.c