Fix ipmi_poweroff compilation without procfs
PATCH 2/2 Fix ipmi_poweroff compilation without procfs
This patch fixes ipmi compilation when procfs is disabled
Signed-off-by Eric Sesterhenn <[email protected]>
drivers/char/ipmi/ipmi_poweroff.c renamed from drivers/char/ipmi/ipmi_poweroff.c.orig +2 -0
@@ -613,7 +613,9 @@ static int ipmi_poweroff_init (void) rv =ipmi_smi_watcher_register (&smi_watcher);if (rv) { +#ifdef CONFIG_PROC_FS unregister_sysctl_table (ipmi_table_header); +#endif printk(KERN_ERR PFX "Unable to register SMI watcher: %d\n", rv); goto out_err; }