[parisc-linux-cvs] fix build without CONFIG_SERIAL

Helge Deller deller@gmx.de
Thu, 29 Nov 2001 22:18:36 +0100


--------------Boundary-00=_07ZKW473HJ3FEGQFPA02
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

On Thursday 29 November 2001 22:17, Helge Deller wrote:
> CVSROOT:	/var/cvs
> Module name:	linux
> Changes by:	deller	01/11/29 14:17:45
>
> Modified files:
> 	arch/parisc/kernel: superio.c
>
> Log message:
> make it possible to build the kernel without CONFIG_SERIAL at all



--------------Boundary-00=_07ZKW473HJ3FEGQFPA02
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="diff"

Index: superio.c
===================================================================
RCS file: /var/cvs/linux/arch/parisc/kernel/superio.c,v
retrieving revision 1.14
diff -u -p -r1.14 superio.c
--- superio.c	2001/11/13 17:31:52	1.14
+++ superio.c	2001/11/29 21:17:06
@@ -382,6 +382,7 @@ int superio_fixup_irq(struct pci_dev *pc
 void __init
 superio_serial_init(void)
 {
+#ifdef CONFIG_SERIAL
 	struct serial_struct *serial;
 	int retval;
 	
@@ -434,6 +435,7 @@ superio_serial_init(void)
 	retval = register_serial(serial);
 	if (retval < 0)
 		printk(KERN_WARNING "SuperIO: Register Serial #1 failed.\n");
+#endif /* CONFIG_SERIAL */
 }
 
 

--------------Boundary-00=_07ZKW473HJ3FEGQFPA02--