Skip to contentSkip to conversation

remove ipmi pm_power_off redefinition

PATCH New Olaf Hering 1 participant 1 message Feb 6, 2006 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove ipmi pm_power_off redefinition

Use the global define of pm_power_off

---
 drivers/char/ipmi/ipmi_poweroff.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/char/ipmi/ipmi_poweroff.c +1 -3
Index: linux-2.6.15/drivers/char/ipmi/ipmi_poweroff.c
===================================================================
@@ -37,15 +37,13 @@
 #include <linux/proc_fs.h>
 #include <linux/string.h>
 #include <linux/completion.h>
+#include <linux/pm.h>
 #include <linux/kdev_t.h>
 #include <linux/ipmi.h>
 #include <linux/ipmi_smi.h>
 
 #define PFX "IPMI poweroff: "
 
-/* Where to we insert our poweroff function? */
-extern void (*pm_power_off)(void);
-
 /* Definitions for controlling power off (if the system supports it).  It
  * conveniently matches the IPMI chassis control values. */
 #define IPMI_CHASSIS_POWER_DOWN		0	/* power down, the default. */
Signature · 2 lines
short story of a lazy sysadmin:
 alias appserv=wotan