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

mfd: max8925-i2c: Make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/mfd/Kconfig: config MFD_MAX8925
drivers/mfd/Kconfig: bool "Maxim Semiconductor MAX8925 PMIC Support"

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

Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

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

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

authored by

Paul Gortmaker and committed by
Lee Jones
9eb5f9ba 9cf0c21f

+1 -13
+1 -13
drivers/mfd/max8925-i2c.c
··· 9 9 * published by the Free Software Foundation. 10 10 */ 11 11 #include <linux/kernel.h> 12 - #include <linux/module.h> 12 + #include <linux/init.h> 13 13 #include <linux/platform_device.h> 14 14 #include <linux/i2c.h> 15 15 #include <linux/mfd/max8925.h> ··· 133 133 { "max8925", 0 }, 134 134 { }, 135 135 }; 136 - MODULE_DEVICE_TABLE(i2c, max8925_id_table); 137 136 138 137 static int max8925_dt_init(struct device_node *np, struct device *dev, 139 138 struct max8925_platform_data *pdata) ··· 239 240 { .compatible = "maxim,max8925", }, 240 241 {}, 241 242 }; 242 - MODULE_DEVICE_TABLE(of, max8925_dt_ids); 243 243 244 244 static struct i2c_driver max8925_driver = { 245 245 .driver = { ··· 262 264 return ret; 263 265 } 264 266 subsys_initcall(max8925_i2c_init); 265 - 266 - static void __exit max8925_i2c_exit(void) 267 - { 268 - i2c_del_driver(&max8925_driver); 269 - } 270 - module_exit(max8925_i2c_exit); 271 - 272 - MODULE_DESCRIPTION("I2C Driver for Maxim 8925"); 273 - MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 274 - MODULE_LICENSE("GPL");