[PATCH 2/2] Fix ipmi_poweroff compilation without procfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes ipmi compilation when procfs is disabled

Signed-off-by: Eric Sesterhenn <[email protected]>

--- linux-2.6.15-rc5/drivers/char/ipmi/ipmi_poweroff.c.orig	2005-12-08 12:11:03.000000000 +0100
+++ linux-2.6.15-rc5/drivers/char/ipmi/ipmi_poweroff.c	2005-12-08 12:12:42.000000000 +0100
@@ -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;
 	}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux