diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-08-10 20:51:09 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 21:51:06 (GMT) |
commit | b4d1eb2ccecb76bce4c2125c5a3e77753fcfaeb0 (patch) | |
tree | 305103e5b12edfca76015222620dcd70fbcb757e /drivers | |
parent | 109f0e93b6b728f03c1eb4af02bc25d71b646c59 (diff) | |
download | linux-fsl-qoriq-b4d1eb2ccecb76bce4c2125c5a3e77753fcfaeb0.tar.xz |
drivers/base/power/: make 2 functions static
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/power/power.h | 6 | ||||
-rw-r--r-- | drivers/base/power/resume.c | 2 | ||||
-rw-r--r-- | drivers/base/power/suspend.c | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 8ba0830..49e64db 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -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 */ diff --git a/drivers/base/power/resume.c b/drivers/base/power/resume.c index 00fd84a..67948ba 100644 --- a/drivers/base/power/resume.c +++ b/drivers/base/power/resume.c @@ -20,7 +20,7 @@ * */ -int resume_device(struct device * dev) +static int resume_device(struct device * dev) { int error = 0; diff --git a/drivers/base/power/suspend.c b/drivers/base/power/suspend.c index 26df9b2..204517a 100644 --- a/drivers/base/power/suspend.c +++ b/drivers/base/power/suspend.c @@ -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; |