]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pinctrl: stmfx: Fix compile issue when CONFIG_OF_GPIO is not defined
authorAmelie Delaunay <amelie.delaunay@st.com>
Fri, 24 May 2019 07:32:05 +0000 (09:32 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 May 2019 08:09:28 +0000 (10:09 +0200)
When CONFIG_GPIO_OF is not defined, struct gpio_chip 'of_node' member does
not exist:
drivers/pinctrl/pinctrl-stmfx.c: In function 'stmfx_pinctrl_probe':
drivers/pinctrl/pinctrl-stmfx.c:652:17: error: 'struct gpio_chip' has no member named 'of_node'
     pctl->gpio_chip.of_node = np;

Fixes: 1490d9f841b1 ("pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index ea798548b0125d20b696f2dbeac99d6ef48031fc..1a7974dba3727bce528b901fb3e3aedadd0663b8 100644 (file)
@@ -276,7 +276,7 @@ config PINCTRL_ST
 config PINCTRL_STMFX
        tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
        depends on I2C
-       depends on OF || COMPILE_TEST
+       depends on OF_GPIO
        select GENERIC_PINCONF
        select GPIOLIB_IRQCHIP
        select MFD_STMFX