[parisc-linux-cvs] fix build without CONFIG_SERIAL

Matthew Wilcox willy@debian.org
Thu, 29 Nov 2001 23:07:54 +0000


On Thu, Nov 29, 2001 at 10:18:36PM +0100, Helge Deller wrote:
> > Log message:
> > make it possible to build the kernel without CONFIG_SERIAL at all

the right way to do this is to stop calling superio_serial_init from the
GSC init at all -- make it selfcontained within suckyio.c.  think you could
make this change?

> @@ -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 */
>  }
>  
>  


-- 
Revolutions do not require corporate support.