Skip to content

Commit

Permalink
EDAC: Unexport and make edac_subsys static
Browse files Browse the repository at this point in the history
... and use the accessor instead.

Signed-off-by: Borislav Petkov <bp@suse.de>
  • Loading branch information
Borislav Petkov committed Dec 11, 2015
1 parent 733476c commit a97d262
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/edac/edac_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion include/linux/edac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a97d262

Please sign in to comment.