Skip to content

Commit

Permalink
drivers/base/power/: make 2 functions static
Browse files Browse the repository at this point in the history
suspend_device() and resume_device() can now become static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 109f0e9 commit b4d1eb2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions drivers/base/power/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ extern void dpm_sysfs_remove(struct device *);

extern void dpm_resume(void);
extern void dpm_power_up(void);
extern int resume_device(struct device *);

/*
* suspend.c
*/
extern int suspend_device(struct device *, pm_message_t);

#else /* CONFIG_PM_SLEEP */

Expand Down
2 changes: 1 addition & 1 deletion drivers/base/power/resume.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

int resume_device(struct device * dev)
static int resume_device(struct device * dev)
{
int error = 0;

Expand Down
2 changes: 1 addition & 1 deletion drivers/base/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ suspend_device_dbg(struct device *dev, pm_message_t state, char *info)
* @state: Power state device is entering.
*/

int suspend_device(struct device * dev, pm_message_t state)
static int suspend_device(struct device * dev, pm_message_t state)
{
int error = 0;

Expand Down

0 comments on commit b4d1eb2

Please sign in to comment.