PM: Make suspend_ops static
Changes
2 files changed · +1 −3
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| include/linux/suspend.h | modified | +0 | −2 | View file |
| kernel/power/main.c | modified | +1 | −1 | View file |
include/linux/suspend.h
View filediff --git a/include/linux/suspend.h b/include/linux/suspend.h
index 541f0c4..dee416c 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -79,8 +79,6 @@ struct platform_suspend_ops {
};
#ifdef CONFIG_SUSPEND
-extern struct platform_suspend_ops *suspend_ops;
-
/**
* suspend_set_ops - set platform dependent suspend operations
* @ops: The new suspend operations to set.
kernel/power/main.c
View filediff --git a/kernel/power/main.c b/kernel/power/main.c
index 7d09a98..fb2412e 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -32,7 +32,7 @@ DEFINE_MUTEX(pm_mutex);
/* This is just an arbitrary number */
#define FREE_PAGE_NUMBER (100)
-struct platform_suspend_ops *suspend_ops;
+static struct platform_suspend_ops *suspend_ops;
/**
* suspend_set_ops - Set the global suspend method table.