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

mfd: ab8500-gpadc: Make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/mfd/Kconfig:config AB8500_GPADC
drivers/mfd/Kconfig: bool "ST-Ericsson AB8500 GPADC driver"

...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.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Paul Gortmaker and committed by
Lee Jones
1d57c39d 4b3f2b60

+2 -17
+2 -17
drivers/mfd/ab8500-gpadc.c
··· 5 5 * Author: Arun R Murthy <arun.murthy@stericsson.com> 6 6 * Author: Daniel Willerud <daniel.willerud@stericsson.com> 7 7 * Author: Johan Palsson <johan.palsson@stericsson.com> 8 + * Author: M'boumba Cedric Madianga 8 9 */ 9 10 #include <linux/init.h> 10 - #include <linux/module.h> 11 11 #include <linux/device.h> 12 12 #include <linux/interrupt.h> 13 13 #include <linux/spinlock.h> ··· 1054 1054 { 1055 1055 return platform_driver_register(&ab8500_gpadc_driver); 1056 1056 } 1057 - 1058 - static void __exit ab8500_gpadc_exit(void) 1059 - { 1060 - platform_driver_unregister(&ab8500_gpadc_driver); 1061 - } 1057 + subsys_initcall_sync(ab8500_gpadc_init); 1062 1058 1063 1059 /** 1064 1060 * ab8540_gpadc_get_otp() - returns OTP values ··· 1073 1077 *ibat_l = gpadc->cal_data[ADC_INPUT_IBAT].otp_calib_lo; 1074 1078 *ibat_h = gpadc->cal_data[ADC_INPUT_IBAT].otp_calib_hi; 1075 1079 } 1076 - 1077 - subsys_initcall_sync(ab8500_gpadc_init); 1078 - module_exit(ab8500_gpadc_exit); 1079 - 1080 - MODULE_LICENSE("GPL v2"); 1081 - MODULE_AUTHOR("Arun R Murthy"); 1082 - MODULE_AUTHOR("Daniel Willerud"); 1083 - MODULE_AUTHOR("Johan Palsson"); 1084 - MODULE_AUTHOR("M'boumba Cedric Madianga"); 1085 - MODULE_ALIAS("platform:ab8500_gpadc"); 1086 - MODULE_DESCRIPTION("AB8500 GPADC driver");