Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Paul Gortmaker and committed by
Linus Walleij
a86e87e8 d147d548

-1
-1
drivers/gpio/gpio-palmas.c
··· 152 152 { .compatible = "ti,tps80036-gpio", .data = &tps80036_dev_data,}, 153 153 { }, 154 154 }; 155 - MODULE_DEVICE_TABLE(of, of_palmas_gpio_match); 156 155 157 156 static int palmas_gpio_probe(struct platform_device *pdev) 158 157 {