Did you test it ?
> diff -u /linux.vanilla/drivers/char/serial.c /linux/drivers/char/serial.c
> --- /linux.vanilla/drivers/char/serial.c	Thu Mar  1 20:15:43 2001
> +++ /linux/drivers/char/serial.c	Fri Mar  2 00:10:29 2001
> @@ -3876,7 +3876,10 @@
>  		return 0;
>  	}
>  	req->io_type = SERIAL_IO_MEM;
> -	req->iomem_base = ioremap(port, board->uart_offset);
> +	if ((req->iomem_base = ioremap(port, board->uart_offset))) {
> +		printk(KERN_ERR "serial: Couldn's remap IO memory at %#lx\n", port);
> +		return 1;
> +	}
This seems wrong.  ioremap returns NULL in case of failure.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/