summaryrefslogtreecommitdiff
path: root/drivers/misc/ibmasm/ibmasm.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-12 01:01:45 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-12 01:01:45 -0700
commited459323250efe979acbbc6c34b91047b39c078c (patch)
treec933ecb63bf6d82816db7bd90a2200a675f3cedd /drivers/misc/ibmasm/ibmasm.h
parent4fbd14380484c466338108b59fbc04062c01f1df (diff)
[PATCH] make ibmasm driver uart support depend on SERIAL_8250
From: Max Asbock <masbock@us.ibm.com> This patch makes serial line registration in the ibmasm service processor driver depend on CONFIG_SERIAL_8250. Previously the driver wouldn't compile when serial driver support wasn't enabled.
Diffstat (limited to 'drivers/misc/ibmasm/ibmasm.h')
-rw-r--r--drivers/misc/ibmasm/ibmasm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/ibmasm/ibmasm.h b/drivers/misc/ibmasm/ibmasm.h
index 01727a5ca21d..9b3ff1dcfb78 100644
--- a/drivers/misc/ibmasm/ibmasm.h
+++ b/drivers/misc/ibmasm/ibmasm.h
@@ -220,5 +220,10 @@ extern void ibmasmfs_unregister(void);
extern void ibmasmfs_add_sp(struct service_processor *sp);
/* uart */
+#ifdef CONFIG_SERIAL_8250
extern void ibmasm_register_uart(struct service_processor *sp);
extern void ibmasm_unregister_uart(struct service_processor *sp);
+#else
+#define ibmasm_register_uart(sp) do { } while(0)
+#define ibmasm_unregister_uart(sp) do { } while(0)
+#endif