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

gpio: sx150x: make explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/gpio/Kconfig:config GPIO_SX150X
drivers/gpio/Kconfig: bool "Semtech SX150x I2C GPIO expander"

...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
was (or is now) contained at the top of the file in the comments.

Cc: Gregory Bean <gbean@codeaurora.org>
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
24a876ce 85133341

+4 -11
+4 -11
drivers/gpio/gpio-sx150x.c
··· 1 1 /* Copyright (c) 2010, Code Aurora Forum. All rights reserved. 2 2 * 3 + * Driver for Semtech SX150X I2C GPIO Expanders 4 + * 5 + * Author: Gregory Bean <gbean@codeaurora.org> 6 + * 3 7 * This program is free software; you can redistribute it and/or modify 4 8 * it under the terms of the GNU General Public License version 2 and 5 9 * only version 2 as published by the Free Software Foundation. ··· 23 19 #include <linux/init.h> 24 20 #include <linux/interrupt.h> 25 21 #include <linux/irq.h> 26 - #include <linux/module.h> 27 22 #include <linux/mutex.h> 28 23 #include <linux/slab.h> 29 24 #include <linux/i2c/sx150x.h> ··· 721 718 return i2c_add_driver(&sx150x_driver); 722 719 } 723 720 subsys_initcall(sx150x_init); 724 - 725 - static void __exit sx150x_exit(void) 726 - { 727 - return i2c_del_driver(&sx150x_driver); 728 - } 729 - module_exit(sx150x_exit); 730 - 731 - MODULE_AUTHOR("Gregory Bean <gbean@codeaurora.org>"); 732 - MODULE_DESCRIPTION("Driver for Semtech SX150X I2C GPIO Expanders"); 733 - MODULE_LICENSE("GPL v2");