diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-05-27 09:42:30 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-10-31 19:31:23 -0400 |
commit | eefa9cfc891d18aa83744353d2a3fbe95a86ee2d (patch) | |
tree | 7365f73b0ff9be45b7b8a623d7878105eeb12814 | |
parent | 363c75db1d7bbda0aa90e680565f2673bab92ee4 (diff) |
pci: add module.h to files implicitly relying on its presence.
These were getting module.h implicitly from device.h but we want
to clean that up, so we fix it here to avoid things like:
pci/slot.c: In function ‘pci_hp_create_module_link’:
pci/slot.c:383: error: ‘module_kset’ undeclared (first use in this function)
Similarly, rpadlpar_core.c is modular, so add module.h to its includes.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | drivers/pci/hotplug/pciehp_acpi.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/rpadlpar_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/slot.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp_acpi.c b/drivers/pci/hotplug/pciehp_acpi.c index 5f7226223a62..376d70d17176 100644 --- a/drivers/pci/hotplug/pciehp_acpi.c +++ b/drivers/pci/hotplug/pciehp_acpi.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/pci.h> | 27 | #include <linux/pci.h> |
28 | #include <linux/pci_hotplug.h> | 28 | #include <linux/pci_hotplug.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/module.h> | ||
30 | #include "pciehp.h" | 31 | #include "pciehp.h" |
31 | 32 | ||
32 | #define PCIEHP_DETECT_PCIE (0) | 33 | #define PCIEHP_DETECT_PCIE (0) |
diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpadlpar_core.c index 1d002b1c2bf4..c56a9413e1af 100644 --- a/drivers/pci/hotplug/rpadlpar_core.c +++ b/drivers/pci/hotplug/rpadlpar_core.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #undef DEBUG | 18 | #undef DEBUG |
19 | 19 | ||
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/module.h> | ||
21 | #include <linux/pci.h> | 22 | #include <linux/pci.h> |
22 | #include <linux/string.h> | 23 | #include <linux/string.h> |
23 | #include <linux/vmalloc.h> | 24 | #include <linux/vmalloc.h> |
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index 968cfea04f74..ac6412fb8d6f 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include <linux/kobject.h> | 8 | #include <linux/kobject.h> |
9 | #include <linux/slab.h> | 9 | #include <linux/slab.h> |
10 | #include <linux/module.h> | ||
10 | #include <linux/pci.h> | 11 | #include <linux/pci.h> |
11 | #include <linux/err.h> | 12 | #include <linux/err.h> |
12 | #include "pci.h" | 13 | #include "pci.h" |