diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/attribute_container.c | 9 | ||||
-rw-r--r-- | drivers/base/base.h | 1 | ||||
-rw-r--r-- | drivers/base/init.c | 1 |
3 files changed, 1 insertions, 10 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index 7370d7cf5988..d4dfb97de3b0 100644 --- a/drivers/base/attribute_container.c +++ b/drivers/base/attribute_container.c | |||
@@ -61,7 +61,7 @@ attribute_container_classdev_to_container(struct class_device *classdev) | |||
61 | } | 61 | } |
62 | EXPORT_SYMBOL_GPL(attribute_container_classdev_to_container); | 62 | EXPORT_SYMBOL_GPL(attribute_container_classdev_to_container); |
63 | 63 | ||
64 | static struct list_head attribute_container_list; | 64 | static LIST_HEAD(attribute_container_list); |
65 | 65 | ||
66 | static DEFINE_MUTEX(attribute_container_mutex); | 66 | static DEFINE_MUTEX(attribute_container_mutex); |
67 | 67 | ||
@@ -429,10 +429,3 @@ attribute_container_find_class_device(struct attribute_container *cont, | |||
429 | return cdev; | 429 | return cdev; |
430 | } | 430 | } |
431 | EXPORT_SYMBOL_GPL(attribute_container_find_class_device); | 431 | EXPORT_SYMBOL_GPL(attribute_container_find_class_device); |
432 | |||
433 | int __init | ||
434 | attribute_container_init(void) | ||
435 | { | ||
436 | INIT_LIST_HEAD(&attribute_container_list); | ||
437 | return 0; | ||
438 | } | ||
diff --git a/drivers/base/base.h b/drivers/base/base.h index 3b0f395552db..a74ceda34e19 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -49,7 +49,6 @@ static inline int hypervisor_init(void) { return 0; } | |||
49 | extern int platform_bus_init(void); | 49 | extern int platform_bus_init(void); |
50 | extern int system_bus_init(void); | 50 | extern int system_bus_init(void); |
51 | extern int cpu_dev_init(void); | 51 | extern int cpu_dev_init(void); |
52 | extern int attribute_container_init(void); | ||
53 | 52 | ||
54 | extern int bus_add_device(struct device * dev); | 53 | extern int bus_add_device(struct device * dev); |
55 | extern void bus_attach_device(struct device * dev); | 54 | extern void bus_attach_device(struct device * dev); |
diff --git a/drivers/base/init.c b/drivers/base/init.c index 37138154f9e8..1da88a10cfec 100644 --- a/drivers/base/init.c +++ b/drivers/base/init.c | |||
@@ -36,5 +36,4 @@ void __init driver_init(void) | |||
36 | system_bus_init(); | 36 | system_bus_init(); |
37 | cpu_dev_init(); | 37 | cpu_dev_init(); |
38 | memory_dev_init(); | 38 | memory_dev_init(); |
39 | attribute_container_init(); | ||
40 | } | 39 | } |