drivers/base/power/: make 2 functions static
authorAdrian Bunk <bunk@stusta.de>
Fri, 10 Aug 2007 20:51:09 +0000 (13:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:51:06 +0000 (14:51 -0700)
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>
drivers/base/power/power.h
drivers/base/power/resume.c
drivers/base/power/suspend.c

index 8ba0830cbc03fa6fe50d8bc27be7b5c3e770259c..49e64dbcce9642ce0f56822f7a0eb592bca4e062 100644 (file)
@@ -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 */
 
index 00fd84ae6e66f955855f39286b66632c50b0e3dc..67948bac993850658b2b23d7e9910e2e859420d1 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-int resume_device(struct device * dev)
+static int resume_device(struct device * dev)
 {
        int error = 0;
 
index 26df9b231737de51c0541567553704cac4381d70..204517afb15e91c189104f54287e8c9b7e4dabbc 100644 (file)
@@ -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;