diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-08-24 16:57:44 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-08-24 17:52:24 -0400 |
commit | 61612e6dd49d08e174e12f9aca58a4aca297609b (patch) | |
tree | 35b131c56b15d3499e578f6e8bc4b0f66af66095 | |
parent | 4068bd192a124585b9c55673a4ac5b3988abd981 (diff) |
PCI: Make DPC explicitly non-modular
This code is not being built as a module by anyone:
drivers/pci/pcie/Kconfig:config PCIE_DPC
drivers/pci/pcie/Kconfig: bool "PCIe Downstream Port Containment 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: Keith Busch <keith.busch@intel.com>
CC: Mika Westerberg <mika.westerberg@linux.intel.com>
-rw-r--r-- | drivers/pci/pcie/pcie-dpc.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/pci/pcie/pcie-dpc.c b/drivers/pci/pcie/pcie-dpc.c index 250f87861786..9811b14d9ad8 100644 --- a/drivers/pci/pcie/pcie-dpc.c +++ b/drivers/pci/pcie/pcie-dpc.c | |||
@@ -1,5 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * PCI Express Downstream Port Containment services driver | 2 | * PCI Express Downstream Port Containment services driver |
3 | * Author: Keith Busch <keith.busch@intel.com> | ||
4 | * | ||
3 | * Copyright (C) 2016 Intel Corp. | 5 | * Copyright (C) 2016 Intel Corp. |
4 | * | 6 | * |
5 | * This file is subject to the terms and conditions of the GNU General Public | 7 | * This file is subject to the terms and conditions of the GNU General Public |
@@ -9,7 +11,7 @@ | |||
9 | 11 | ||
10 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
11 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
12 | #include <linux/module.h> | 14 | #include <linux/init.h> |
13 | #include <linux/pci.h> | 15 | #include <linux/pci.h> |
14 | #include <linux/pcieport_if.h> | 16 | #include <linux/pcieport_if.h> |
15 | 17 | ||
@@ -143,16 +145,4 @@ static int __init dpc_service_init(void) | |||
143 | { | 145 | { |
144 | return pcie_port_service_register(&dpcdriver); | 146 | return pcie_port_service_register(&dpcdriver); |
145 | } | 147 | } |
146 | 148 | device_initcall(dpc_service_init); | |
147 | static void __exit dpc_service_exit(void) | ||
148 | { | ||
149 | pcie_port_service_unregister(&dpcdriver); | ||
150 | } | ||
151 | |||
152 | MODULE_DESCRIPTION("PCI Express Downstream Port Containment driver"); | ||
153 | MODULE_AUTHOR("Keith Busch <keith.busch@intel.com>"); | ||
154 | MODULE_LICENSE("GPL"); | ||
155 | MODULE_VERSION("0.1"); | ||
156 | |||
157 | module_init(dpc_service_init); | ||
158 | module_exit(dpc_service_exit); | ||