Skip to content

Commit

Permalink
pinctrl/amd: Fix build dependency on pinmux code
Browse files Browse the repository at this point in the history
The commit 79d2c8b ("pinctrl/amd: save pin registers over
suspend/resume") caused the following compilation errors:

drivers/pinctrl/pinctrl-amd.c: In function ‘amd_gpio_should_save’:
drivers/pinctrl/pinctrl-amd.c:741:8: error: ‘const struct pin_desc’ has no member named ‘mux_owner’
  if (pd->mux_owner || pd->gpio_owner ||
        ^
drivers/pinctrl/pinctrl-amd.c:741:25: error: ‘const struct pin_desc’ has no member named ‘gpio_owner’
  if (pd->mux_owner || pd->gpio_owner ||

We need to enable CONFIG_PINMUX for this driver as well.

Cc: [email protected]
Fixes: 79d2c8b ("pinctrl/amd: save pin registers over suspend/resume")
Signed-off-by: Petr Mladek <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
pmladek authored and linusw committed Sep 27, 2017
1 parent c84284e commit 83b31c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pinctrl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ config PINCTRL_AMD
tristate "AMD GPIO pin control"
depends on GPIOLIB
select GPIOLIB_IRQCHIP
select PINMUX
select PINCONF
select GENERIC_PINCONF
help
Expand Down

0 comments on commit 83b31c2

Please sign in to comment.