]> err.no Git - linux-2.6/commitdiff
driver core: clean up shutdown.c
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 20 Nov 2007 21:56:21 +0000 (13:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:25 +0000 (20:40 -0800)
shutdown.c had some stuff it did not need, including a duplicate extern
in the power.h file.  This cleans up all of that.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/power.h
drivers/base/power/shutdown.c

index 10c20840395e8bcebb69c5488af327c8c5c3e77b..6f0dfca8ebdd2437da619ab7a0c89abd7a60dcca 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * shutdown.c
- */
-
-extern void device_shutdown(void);
-
-
 #ifdef CONFIG_PM_SLEEP
 
 /*
index f51cbc1d402c8be82d848fbd34f57e32379cff40..5b6bc168ffbaa29de7e77daddeb9a090e4b6b081 100644 (file)
 #include <asm/semaphore.h>
 
 #include "../base.h"
-#include "power.h"
-
-#define to_dev(node) container_of(node, struct device, kobj.entry)
-
 
 /**
  * We handle system devices differently - we suspend and shut them
@@ -45,4 +41,3 @@ void device_shutdown(void)
                }
        }
 }
-