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

gpio: palmas: make explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/gpio/Kconfig:config GPIO_PALMAS
drivers/gpio/Kconfig: bool "TI PALMAS series PMICs GPIO"

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

Since module_init was not in use by this code, the init ordering
remains unchanged with this commit.

We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Laxman Dewangan <ldewangan@nvidia.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
f9f2b5cb 24a876ce

+1 -12
+1 -12
drivers/gpio/gpio-palmas.c
··· 20 20 21 21 #include <linux/gpio.h> 22 22 #include <linux/kernel.h> 23 - #include <linux/module.h> 23 + #include <linux/init.h> 24 24 #include <linux/mfd/palmas.h> 25 25 #include <linux/of.h> 26 26 #include <linux/of_device.h> ··· 218 218 return platform_driver_register(&palmas_gpio_driver); 219 219 } 220 220 subsys_initcall(palmas_gpio_init); 221 - 222 - static void __exit palmas_gpio_exit(void) 223 - { 224 - platform_driver_unregister(&palmas_gpio_driver); 225 - } 226 - module_exit(palmas_gpio_exit); 227 - 228 - MODULE_ALIAS("platform:palmas-gpio"); 229 - MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>"); 230 - MODULE_DESCRIPTION("GPIO driver for TI Palmas series PMICs"); 231 - MODULE_LICENSE("GPL v2");