diff options
-rw-r--r-- | drivers/base/attribute_container.c | 2 | ||||
-rw-r--r-- | drivers/base/base.h | 12 | ||||
-rw-r--r-- | drivers/base/cpu.c | 1 | ||||
-rw-r--r-- | drivers/base/firmware.c | 3 | ||||
-rw-r--r-- | drivers/base/init.c | 10 | ||||
-rw-r--r-- | drivers/base/platform.c | 2 |
6 files changed, 22 insertions, 8 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index 6b2eb6f39b4..2a7d7ae83e1 100644 --- a/drivers/base/attribute_container.c +++ b/drivers/base/attribute_container.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/list.h> | 19 | #include <linux/list.h> |
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | 21 | ||
22 | #include "base.h" | ||
23 | |||
22 | /* This is a private structure used to tie the classdev and the | 24 | /* This is a private structure used to tie the classdev and the |
23 | * container .. it should never be visible outside this file */ | 25 | * container .. it should never be visible outside this file */ |
24 | struct internal_container { | 26 | struct internal_container { |
diff --git a/drivers/base/base.h b/drivers/base/base.h index 783752b68a9..e3b548d46cf 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -1,3 +1,15 @@ | |||
1 | |||
2 | /* initialisation functions */ | ||
3 | |||
4 | extern int devices_init(void); | ||
5 | extern int buses_init(void); | ||
6 | extern int classes_init(void); | ||
7 | extern int firmware_init(void); | ||
8 | extern int platform_bus_init(void); | ||
9 | extern int system_bus_init(void); | ||
10 | extern int cpu_dev_init(void); | ||
11 | extern int attribute_container_init(void); | ||
12 | |||
1 | extern int bus_add_device(struct device * dev); | 13 | extern int bus_add_device(struct device * dev); |
2 | extern void bus_remove_device(struct device * dev); | 14 | extern void bus_remove_device(struct device * dev); |
3 | 15 | ||
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index b79badd0f15..081c927b1ed 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/topology.h> | 9 | #include <linux/topology.h> |
10 | #include <linux/device.h> | 10 | #include <linux/device.h> |
11 | 11 | ||
12 | #include "base.h" | ||
12 | 13 | ||
13 | struct sysdev_class cpu_sysdev_class = { | 14 | struct sysdev_class cpu_sysdev_class = { |
14 | set_kset_name("cpu"), | 15 | set_kset_name("cpu"), |
diff --git a/drivers/base/firmware.c b/drivers/base/firmware.c index 88ab044932f..cb1b98ae0d5 100644 --- a/drivers/base/firmware.c +++ b/drivers/base/firmware.c | |||
@@ -11,6 +11,9 @@ | |||
11 | #include <linux/kobject.h> | 11 | #include <linux/kobject.h> |
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/device.h> | ||
15 | |||
16 | #include "base.h" | ||
14 | 17 | ||
15 | static decl_subsys(firmware, NULL, NULL); | 18 | static decl_subsys(firmware, NULL, NULL); |
16 | 19 | ||
diff --git a/drivers/base/init.c b/drivers/base/init.c index a76ae5a221f..84e604e25c4 100644 --- a/drivers/base/init.c +++ b/drivers/base/init.c | |||
@@ -10,14 +10,8 @@ | |||
10 | #include <linux/device.h> | 10 | #include <linux/device.h> |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | 12 | ||
13 | extern int devices_init(void); | 13 | #include "base.h" |
14 | extern int buses_init(void); | 14 | |
15 | extern int classes_init(void); | ||
16 | extern int firmware_init(void); | ||
17 | extern int platform_bus_init(void); | ||
18 | extern int system_bus_init(void); | ||
19 | extern int cpu_dev_init(void); | ||
20 | extern int attribute_container_init(void); | ||
21 | /** | 15 | /** |
22 | * driver_init - initialize driver model. | 16 | * driver_init - initialize driver model. |
23 | * | 17 | * |
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 361e204209e..a1a56ff65b7 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -17,6 +17,8 @@ | |||
17 | #include <linux/bootmem.h> | 17 | #include <linux/bootmem.h> |
18 | #include <linux/err.h> | 18 | #include <linux/err.h> |
19 | 19 | ||
20 | #include "base.h" | ||
21 | |||
20 | struct device platform_bus = { | 22 | struct device platform_bus = { |
21 | .bus_id = "platform", | 23 | .bus_id = "platform", |
22 | }; | 24 | }; |