summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-palmas.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2016-09-12 18:16:24 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-09-15 13:57:43 +0200
commita86e87e8c7653cbdbb61327ee04072638eecafbf (patch)
treec656b77aab3a330335fc4e095791e2c6b3747135 /drivers/gpio/gpio-palmas.c
parentd147d54899339b321f8319dfb25d05f1eec0e77d (diff)
downloadlinux-a86e87e8c7653cbdbb61327ee04072638eecafbf.tar.gz
linux-a86e87e8c7653cbdbb61327ee04072638eecafbf.tar.bz2
linux-a86e87e8c7653cbdbb61327ee04072638eecafbf.zip
gpio: palmas: fix implicit assumption module.h is present
This file is currently getting module.h from a global gpio header and it will fail to build once we remove module.h from that. However, the driver is controlled with the following Kconfig: drivers/gpio/Kconfig:config GPIO_PALMAS drivers/gpio/Kconfig: bool "TI PALMAS series PMICs GPIO" and hence the line of MODULE_DEVICE_TABLE is a no-op that can simply be deleted. In fact it should have been removed in an earlier commit that did demodularization, however the unseen include prevented my build testing from detecting it. Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Alexandre Courbot <gnurou@gmail.com> Cc: linux-gpio@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-palmas.c')
-rw-r--r--drivers/gpio/gpio-palmas.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-palmas.c b/drivers/gpio/gpio-palmas.c
index 839474430229..3d818195e351 100644
--- a/drivers/gpio/gpio-palmas.c
+++ b/drivers/gpio/gpio-palmas.c
@@ -152,7 +152,6 @@ static const struct of_device_id of_palmas_gpio_match[] = {
{ .compatible = "ti,tps80036-gpio", .data = &tps80036_dev_data,},
{ },
};
-MODULE_DEVICE_TABLE(of, of_palmas_gpio_match);
static int palmas_gpio_probe(struct platform_device *pdev)
{