diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-08-24 16:57:46 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-08-24 17:59:57 -0400 |
commit | 8756336c1d6d27d844a8cfc61127859dca4090f5 (patch) | |
tree | d2821308b93b337854636cfa4345a17eac0fbf18 | |
parent | d7def20400773c7c0be8dcee58434ddbb0f6f8d9 (diff) |
PCI/AER: Make explicitly non-modular
This code is not being built as a module by anyone:
obj-$(CONFIG_PCIEAER) += aerdriver.o
aerdriver-objs := aerdrv_errprint.o aerdrv_core.o aerdrv.o
drivers/pci/pcie/aer/Kconfig:config PCIEAER
drivers/pci/pcie/aer/Kconfig: bool "Root Port Advanced Error Reporting support"
Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(),
etc., so that when reading the driver there is no doubt it is builtin-only.
The information is preserved in comments at the top of the file.
Note that for non-modular code, module_init() translates to
device_initcall().
[bhelgaas: changelog]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Tom Long Nguyen <tom.l.nguyen@intel.com>
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c index 48d21e0edd56..49805a48b81c 100644 --- a/drivers/pci/pcie/aer/aerdrv.c +++ b/drivers/pci/pcie/aer/aerdrv.c | |||
@@ -15,7 +15,6 @@ | |||
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/module.h> | ||
19 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
20 | #include <linux/pci-acpi.h> | 19 | #include <linux/pci-acpi.h> |
21 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
@@ -37,9 +36,6 @@ | |||
37 | #define DRIVER_VERSION "v1.0" | 36 | #define DRIVER_VERSION "v1.0" |
38 | #define DRIVER_AUTHOR "tom.l.nguyen@intel.com" | 37 | #define DRIVER_AUTHOR "tom.l.nguyen@intel.com" |
39 | #define DRIVER_DESC "Root Port Advanced Error Reporting Driver" | 38 | #define DRIVER_DESC "Root Port Advanced Error Reporting Driver" |
40 | MODULE_AUTHOR(DRIVER_AUTHOR); | ||
41 | MODULE_DESCRIPTION(DRIVER_DESC); | ||
42 | MODULE_LICENSE("GPL"); | ||
43 | 39 | ||
44 | static int aer_probe(struct pcie_device *dev); | 40 | static int aer_probe(struct pcie_device *dev); |
45 | static void aer_remove(struct pcie_device *dev); | 41 | static void aer_remove(struct pcie_device *dev); |
@@ -417,16 +413,4 @@ static int __init aer_service_init(void) | |||
417 | return -ENXIO; | 413 | return -ENXIO; |
418 | return pcie_port_service_register(&aerdriver); | 414 | return pcie_port_service_register(&aerdriver); |
419 | } | 415 | } |
420 | 416 | device_initcall(aer_service_init); | |
421 | /** | ||
422 | * aer_service_exit - unregister AER root service driver | ||
423 | * | ||
424 | * Invoked when AER root service driver is unloaded. | ||
425 | */ | ||
426 | static void __exit aer_service_exit(void) | ||
427 | { | ||
428 | pcie_port_service_unregister(&aerdriver); | ||
429 | } | ||
430 | |||
431 | module_init(aer_service_init); | ||
432 | module_exit(aer_service_exit); | ||