aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2016-07-11 18:17:23 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-07-15 21:05:29 -0400
commitffaab0aa2c3edd67a0cafbc66f9cc39276f233fa (patch)
tree92efab8601e9f361d228388c86c6c946f6f404bd
parent409ffed2b6ae1d5db3cefed2e0fb2ca7e3f352bd (diff)
ACPI / PCI: make pci_slot explicitly non-modular
The Kconfig for this file is: drivers/acpi/Kconfig:config ACPI_PCI_SLOT drivers/acpi/Kconfig: bool "PCI slot detection driver" ...and so it is not built as a module. Hence including module.h and everything that comes with it just for the no-op MODULE_LICENSE and friends is rather heavy handed. The license/author info is found at the top of the file, so we just remove the MODULE_LICENSE etc and the include of module.h We delete the DRIVER_VERSION macro as well since it is unused. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/pci_slot.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c
index 1236fb04a708..f62c68e24317 100644
--- a/drivers/acpi/pci_slot.c
+++ b/drivers/acpi/pci_slot.c
@@ -25,7 +25,6 @@
25#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 25#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
26 26
27#include <linux/kernel.h> 27#include <linux/kernel.h>
28#include <linux/module.h>
29#include <linux/init.h> 28#include <linux/init.h>
30#include <linux/slab.h> 29#include <linux/slab.h>
31#include <linux/types.h> 30#include <linux/types.h>
@@ -37,13 +36,6 @@
37 36
38static int check_sta_before_sun; 37static int check_sta_before_sun;
39 38
40#define DRIVER_VERSION "0.1"
41#define DRIVER_AUTHOR "Alex Chiang <achiang@hp.com>"
42#define DRIVER_DESC "ACPI PCI Slot Detection Driver"
43MODULE_AUTHOR(DRIVER_AUTHOR);
44MODULE_DESCRIPTION(DRIVER_DESC);
45MODULE_LICENSE("GPL");
46
47#define _COMPONENT ACPI_PCI_COMPONENT 39#define _COMPONENT ACPI_PCI_COMPONENT
48ACPI_MODULE_NAME("pci_slot"); 40ACPI_MODULE_NAME("pci_slot");
49 41