summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2015-11-30 16:15:31 +0300
committerBorislav Petkov <bp@suse.de>2015-12-11 18:56:40 +0300
commita97d26270169dc30ef28f0860097b7dc793206be (patch)
treeec7c90a4ebd1dee15ef609d9b498776aa4f98dc3
parent733476cf207faf574b132523ff2aee78b488ed6b (diff)
downloadlinux-a97d26270169dc30ef28f0860097b7dc793206be.tar.xz
EDAC: Unexport and make edac_subsys static
... and use the accessor instead. Signed-off-by: Borislav Petkov <bp@suse.de>
-rw-r--r--drivers/edac/edac_module.c3
-rw-r--r--include/linux/edac.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/edac/edac_module.c b/drivers/edac/edac_module.c
index 059b5924988b..2b53680a687d 100644
--- a/drivers/edac/edac_module.c
+++ b/drivers/edac/edac_module.c
@@ -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)
{
diff --git a/include/linux/edac.h b/include/linux/edac.h
index 98f915dfeeac..9e0d78966552 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -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);