mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] Fix ipmi_poweroff compilation without procfs
@ 2005-12-12 11:08 Eric Sesterhenn / snakebyte
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn / snakebyte @ 2005-12-12 11:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: sdake

This patch fixes ipmi compilation when procfs is disabled

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- 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;
 	}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-12 11:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12 11:08 [PATCH 2/2] Fix ipmi_poweroff compilation without procfs Eric Sesterhenn / snakebyte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®