[PATCH] drivers/serial NULL noise removal
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 9 Feb 2007 16:38:25 +0000 (16:38 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 9 Feb 2007 17:14:06 +0000 (09:14 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/uartlite.c

index db8607e3d5318013a13b0fa94eee7707c6270e7b..f5051cf1a0c8ec0613d1b4c9d467fa099a5c1aa6 100644 (file)
@@ -256,7 +256,7 @@ static void ulite_release_port(struct uart_port *port)
 {
        release_mem_region(port->mapbase, ULITE_REGION);
        iounmap(port->membase);
-       port->membase = 0;
+       port->membase = NULL;
 }
 
 static int ulite_request_port(struct uart_port *port)
@@ -438,7 +438,7 @@ static int __devinit ulite_probe(struct platform_device *pdev)
        port->iotype    = UPIO_MEM;
        port->iobase    = 1; /* mark port in use */
        port->mapbase   = res->start;
-       port->membase   = 0;
+       port->membase   = NULL;
        port->ops       = &ulite_ops;
        port->irq       = res2->start;
        port->flags     = UPF_BOOT_AUTOCONF;
@@ -462,7 +462,7 @@ static int ulite_remove(struct platform_device *pdev)
                uart_remove_one_port(&ulite_uart_driver, port);
 
        /* mark port as free */
-       port->membase = 0;
+       port->membase = NULL;
 
        return 0;
 }