Skip to content

Commit

Permalink
PM: Make suspend_ops static
Browse files Browse the repository at this point in the history
The variable suspend_ops representing the set of global platform-specific
suspend-related operations, used by the PM core, need not be exported outside
of kernel/power/main.c .   Make it static.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Oct 18, 2007
1 parent e6c5eb9 commit f242d91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/linux/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f242d91

Please sign in to comment.