mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	mfd: sta2x11: Drop unused MODULE_ tags from non-modular code
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_STA2X11 drivers/mfd/Kconfig: bool "STMicroelectronics STA2X11" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. We delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. We replace module.h with init.h and export.h ; the latter since the file does export some symbols. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Davide Ciminaghi <ciminaghi@gnudd.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
		
							parent
							
								
									cbd230978f
								
							
						
					
					
						commit
						cf090914da
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		|  | @ -1,4 +1,6 @@ | |||
| /*
 | ||||
|  * STA2x11 mfd for GPIO, SCTL and APBREG | ||||
|  * | ||||
|  * Copyright (c) 2009-2011 Wind River Systems, Inc. | ||||
|  * Copyright (c) 2011 ST Microelectronics (Alessandro Rubini, Davide Ciminaghi) | ||||
|  * | ||||
|  | @ -18,7 +20,8 @@ | |||
|  */ | ||||
| 
 | ||||
| #include <linux/kernel.h> | ||||
| #include <linux/module.h> | ||||
| #include <linux/init.h> | ||||
| #include <linux/export.h> | ||||
| #include <linux/spinlock.h> | ||||
| #include <linux/errno.h> | ||||
| #include <linux/device.h> | ||||
|  | @ -653,8 +656,3 @@ static int __init sta2x11_mfd_init(void) | |||
|  */ | ||||
| subsys_initcall(sta2x11_drivers_init); | ||||
| rootfs_initcall(sta2x11_mfd_init); | ||||
| 
 | ||||
| MODULE_LICENSE("GPL v2"); | ||||
| MODULE_AUTHOR("Wind River"); | ||||
| MODULE_DESCRIPTION("STA2x11 mfd for GPIO, SCTL and APBREG"); | ||||
| MODULE_DEVICE_TABLE(pci, sta2x11_mfd_tbl); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Paul Gortmaker
						Paul Gortmaker