EDAC: Unexport and make edac_subsys static
authorBorislav Petkov <bp@suse.de>
Mon, 30 Nov 2015 13:15:31 +0000 (14:15 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 11 Dec 2015 15:56:40 +0000 (16:56 +0100)
... and use the accessor instead.

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_module.c
include/linux/edac.h

index 059b5924988bf0b8743dc65cdbb0f231fc7188c8..2b53680a687d4248c33bbbe66e525133d1664d0c 100644 (file)
@@ -95,11 +95,10 @@ static void edac_workqueue_teardown(void)
  * sysfs object: /sys/devices/system/edac
  *     need to export to other files
  */
-struct bus_type edac_subsys = {
+static struct bus_type edac_subsys = {
        .name = "edac",
        .dev_name = "edac",
 };
-EXPORT_SYMBOL_GPL(edac_subsys);
 
 static int edac_subsys_init(void)
 {
index 98f915dfeeace78ef34be6148a838508e263dd51..9e0d78966552c102011ca84fb8e84a9f158dbf80 100644 (file)
@@ -28,7 +28,6 @@ struct device;
 extern int edac_op_state;
 extern int edac_err_assert;
 extern atomic_t edac_handlers;
-extern struct bus_type edac_subsys;
 
 extern int edac_handler_set(void);
 extern void edac_atomic_assert_error(void);