]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
gpio: generic: fix GPIO_GENERIC_PLATFORM is set to module case
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 29 Apr 2016 00:53:14 +0000 (02:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Apr 2016 14:13:08 +0000 (16:13 +0200)
GPIO_GENERIC_PLATFORM is a tristate. If the module option is
selected the resulting gpio-generic.ko will lack most of the
module initialzation and probe code.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c

index 54cddfa98f50b09c0d87a1f8d61031e158be23a2..6c1cb3b8c02cdcc15e70d275eeaee2b1da5a13d1 100644 (file)
@@ -549,7 +549,7 @@ int bgpio_init(struct gpio_chip *gc, struct device *dev,
 }
 EXPORT_SYMBOL_GPL(bgpio_init);
 
-#ifdef CONFIG_GPIO_GENERIC_PLATFORM
+#if IS_ENABLED(CONFIG_GPIO_GENERIC_PLATFORM)
 
 static void __iomem *bgpio_map(struct platform_device *pdev,
                               const char *name,