]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pinctrl: samsung/s3c24xx: add CONFIG_OF dependency
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Nov 2017 14:12:36 +0000 (15:12 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 10 Nov 2017 10:40:14 +0000 (11:40 +0100)
The driver fails to build without CONFIG_OF:

drivers/pinctrl/samsung/pinctrl-samsung.c: In function 'samsung_gpiolib_register':
drivers/pinctrl/samsung/pinctrl-samsung.c:936:5: error: 'struct gpio_chip' has no member named 'of_node'

This configuration is now possible since we can now select the
PINCTRL subsystem on S3C24xx machines other than the device tree
based ones.

Fixes: d219b924611a ("pinctrl: change Kconfig PINCTRL variable to a menuconfig")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/samsung/Kconfig

index 0357f9701eb96d20f6881ad8a69693ae791ef889..ecfb90059eeb9e3eee1ee044efeae48b4f827db2 100644 (file)
@@ -29,7 +29,7 @@ config PINCTRL_EXYNOS5440
 
 config PINCTRL_S3C24XX
        bool "Samsung S3C24XX SoC pinctrl driver"
-       depends on ARCH_S3C24XX
+       depends on ARCH_S3C24XX && OF
        select PINCTRL_SAMSUNG
 
 config PINCTRL_S3C64XX