Commit 1740757e8f94c6899705eb6f5434de9404992778

Authored by Greg Kroah-Hartman
1 parent a0245f7ad5

[PATCH] Driver Core: remove unused exports

Cc: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 5 changed files with 4 additions and 26 deletions Side-by-side Diff

drivers/base/attribute_container.c
... ... @@ -236,7 +236,6 @@
236 236 }
237 237 up(&attribute_container_mutex);
238 238 }
239   -EXPORT_SYMBOL_GPL(attribute_container_remove_device);
240 239  
241 240 /**
242 241 * attribute_container_device_trigger - execute a trigger for each matching classdev
... ... @@ -276,7 +275,6 @@
276 275 }
277 276 up(&attribute_container_mutex);
278 277 }
279   -EXPORT_SYMBOL_GPL(attribute_container_device_trigger);
280 278  
281 279 /**
282 280 * attribute_container_trigger - trigger a function for each matching container
... ... @@ -304,7 +302,6 @@
304 302 }
305 303 up(&attribute_container_mutex);
306 304 }
307   -EXPORT_SYMBOL_GPL(attribute_container_trigger);
308 305  
309 306 /**
310 307 * attribute_container_add_attrs - add attributes
... ... @@ -333,7 +330,6 @@
333 330  
334 331 return 0;
335 332 }
336   -EXPORT_SYMBOL_GPL(attribute_container_add_attrs);
337 333  
338 334 /**
339 335 * attribute_container_add_class_device - same function as class_device_add
... ... @@ -352,7 +348,6 @@
352 348 return error;
353 349 return attribute_container_add_attrs(classdev);
354 350 }
355   -EXPORT_SYMBOL_GPL(attribute_container_add_class_device);
356 351  
357 352 /**
358 353 * attribute_container_add_class_device_adapter - simple adapter for triggers
... ... @@ -367,7 +362,6 @@
367 362 {
368 363 return attribute_container_add_class_device(classdev);
369 364 }
370   -EXPORT_SYMBOL_GPL(attribute_container_add_class_device_adapter);
371 365  
372 366 /**
373 367 * attribute_container_remove_attrs - remove any attribute files
... ... @@ -389,7 +383,6 @@
389 383 for (i = 0; attrs[i]; i++)
390 384 class_device_remove_file(classdev, attrs[i]);
391 385 }
392   -EXPORT_SYMBOL_GPL(attribute_container_remove_attrs);
393 386  
394 387 /**
395 388 * attribute_container_class_device_del - equivalent of class_device_del
... ... @@ -405,7 +398,6 @@
405 398 attribute_container_remove_attrs(classdev);
406 399 class_device_del(classdev);
407 400 }
408   -EXPORT_SYMBOL_GPL(attribute_container_class_device_del);
409 401  
410 402 /**
411 403 * attribute_container_find_class_device - find the corresponding class_device
... ... @@ -13,6 +13,8 @@
13 13 extern int bus_add_device(struct device * dev);
14 14 extern void bus_attach_device(struct device * dev);
15 15 extern void bus_remove_device(struct device * dev);
  16 +extern struct bus_type *get_bus(struct bus_type * bus);
  17 +extern void put_bus(struct bus_type * bus);
16 18  
17 19 extern int bus_add_driver(struct device_driver *);
18 20 extern void bus_remove_driver(struct device_driver *);
... ... @@ -745,15 +745,9 @@
745 745 EXPORT_SYMBOL_GPL(bus_find_device);
746 746 EXPORT_SYMBOL_GPL(bus_for_each_drv);
747 747  
748   -EXPORT_SYMBOL_GPL(bus_add_device);
749   -EXPORT_SYMBOL_GPL(bus_attach_device);
750   -EXPORT_SYMBOL_GPL(bus_remove_device);
751 748 EXPORT_SYMBOL_GPL(bus_register);
752 749 EXPORT_SYMBOL_GPL(bus_unregister);
753 750 EXPORT_SYMBOL_GPL(bus_rescan_devices);
754   -EXPORT_SYMBOL_GPL(get_bus);
755   -EXPORT_SYMBOL_GPL(put_bus);
756   -EXPORT_SYMBOL_GPL(find_bus);
757 751  
758 752 EXPORT_SYMBOL_GPL(bus_create_file);
759 753 EXPORT_SYMBOL_GPL(bus_remove_file);
drivers/base/class.c
... ... @@ -91,14 +91,14 @@
91 91 sysfs_remove_file(&cls->subsys.kset.kobj, &attr->attr);
92 92 }
93 93  
94   -struct class * class_get(struct class * cls)
  94 +static struct class *class_get(struct class *cls)
95 95 {
96 96 if (cls)
97 97 return container_of(subsys_get(&cls->subsys), struct class, subsys);
98 98 return NULL;
99 99 }
100 100  
101   -void class_put(struct class * cls)
  101 +static void class_put(struct class * cls)
102 102 {
103 103 if (cls)
104 104 subsys_put(&cls->subsys);
... ... @@ -894,8 +894,6 @@
894 894 EXPORT_SYMBOL_GPL(class_remove_file);
895 895 EXPORT_SYMBOL_GPL(class_register);
896 896 EXPORT_SYMBOL_GPL(class_unregister);
897   -EXPORT_SYMBOL_GPL(class_get);
898   -EXPORT_SYMBOL_GPL(class_put);
899 897 EXPORT_SYMBOL_GPL(class_create);
900 898 EXPORT_SYMBOL_GPL(class_destroy);
901 899  
include/linux/device.h
... ... @@ -60,11 +60,6 @@
60 60  
61 61 extern void bus_rescan_devices(struct bus_type * bus);
62 62  
63   -extern struct bus_type * get_bus(struct bus_type * bus);
64   -extern void put_bus(struct bus_type * bus);
65   -
66   -extern struct bus_type * find_bus(char * name);
67   -
68 63 /* iterator helpers for buses */
69 64  
70 65 int bus_for_each_dev(struct bus_type * bus, struct device * start, void * data,
... ... @@ -162,9 +157,6 @@
162 157  
163 158 extern int class_register(struct class *);
164 159 extern void class_unregister(struct class *);
165   -
166   -extern struct class * class_get(struct class *);
167   -extern void class_put(struct class *);
168 160  
169 161  
170 162 struct class_attribute {