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

s390: hotplug: make pci_hpc explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/pci/hotplug/Kconfig:config HOTPLUG_PCI_S390
drivers/pci/hotplug/Kconfig: bool "System z PCI Hotplug Support"

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

We don't exchange module.h for init.h or export.h since the file
does not contain any initcalls or EXPORT of symbols.

Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-s390@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Paul Gortmaker and committed by
Martin Schwidefsky
0729dcf2 8ba8b05f

+2 -5
+2 -5
drivers/pci/hotplug/s390_pci_hpc.c
··· 5 5 * 6 6 * Author(s): 7 7 * Jan Glauber <jang@linux.vnet.ibm.com> 8 + * 9 + * License: GPL 8 10 */ 9 11 10 12 #define KMSG_COMPONENT "zpci" 11 13 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 12 14 13 - #include <linux/module.h> 14 15 #include <linux/kernel.h> 15 16 #include <linux/slab.h> 16 17 #include <linux/pci.h> ··· 21 20 22 21 #define SLOT_NAME_SIZE 10 23 22 static LIST_HEAD(s390_hotplug_slot_list); 24 - 25 - MODULE_AUTHOR("Jan Glauber <jang@linux.vnet.ibm.com"); 26 - MODULE_DESCRIPTION("Hot Plug PCI Controller for System z"); 27 - MODULE_LICENSE("GPL"); 28 23 29 24 static int zpci_fn_configured(enum zpci_state state) 30 25 {