Commit e2a021d4 authored by Linus Walleij's avatar Linus Walleij

pinctrl: Do not depend in GPIOLIB, select it

Instead of depends on GPIOLIB and having to run around in
Kconfig menus looking for why your device is not available,
simply select it from the pin control drivers that need it.

The Kconfig for GPIOLIB is improved, selectable and this
should "just work".

Cc: Phil Reid <preid@electromag.com.au>
Cc: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Cc: Peter Rosin <peda@axentia.se>
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6cb74f44
...@@ -97,7 +97,7 @@ config PINCTRL_AT91PIO4 ...@@ -97,7 +97,7 @@ config PINCTRL_AT91PIO4
config PINCTRL_AMD config PINCTRL_AMD
tristate "AMD GPIO pin control" tristate "AMD GPIO pin control"
depends on GPIOLIB select GPIOLIB
select GPIOLIB_IRQCHIP select GPIOLIB_IRQCHIP
select PINCONF select PINCONF
select GENERIC_PINCONF select GENERIC_PINCONF
...@@ -156,6 +156,7 @@ config PINCTRL_MCP23S08 ...@@ -156,6 +156,7 @@ config PINCTRL_MCP23S08
tristate "Microchip MCP23xxx I/O expander" tristate "Microchip MCP23xxx I/O expander"
depends on SPI_MASTER || I2C depends on SPI_MASTER || I2C
depends on I2C || I2C=n depends on I2C || I2C=n
select GPIOLIB
select GPIOLIB_IRQCHIP select GPIOLIB_IRQCHIP
select REGMAP_I2C if I2C select REGMAP_I2C if I2C
select REGMAP_SPI if SPI_MASTER select REGMAP_SPI if SPI_MASTER
...@@ -224,10 +225,11 @@ config PINCTRL_SIRF ...@@ -224,10 +225,11 @@ config PINCTRL_SIRF
config PINCTRL_SX150X config PINCTRL_SX150X
bool "Semtech SX150x I2C GPIO expander pinctrl driver" bool "Semtech SX150x I2C GPIO expander pinctrl driver"
depends on GPIOLIB && I2C=y depends on I2C=y
select PINMUX select PINMUX
select PINCONF select PINCONF
select GENERIC_PINCONF select GENERIC_PINCONF
select GPIOLIB
select GPIOLIB_IRQCHIP select GPIOLIB_IRQCHIP
select REGMAP select REGMAP
help help
......
...@@ -5,7 +5,8 @@ if (X86 || COMPILE_TEST) ...@@ -5,7 +5,8 @@ if (X86 || COMPILE_TEST)
config PINCTRL_BAYTRAIL config PINCTRL_BAYTRAIL
bool "Intel Baytrail GPIO pin control" bool "Intel Baytrail GPIO pin control"
depends on GPIOLIB && ACPI depends on ACPI
select GPIOLIB
select GPIOLIB_IRQCHIP select GPIOLIB_IRQCHIP
select PINMUX select PINMUX
select PINCONF select PINCONF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment