From: Al Viro Date: Fri, 9 Feb 2007 16:38:25 +0000 (+0000) Subject: [PATCH] drivers/serial NULL noise removal X-Git-Tag: v3.12-rc1~31512^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b81831c69afb82c0545d3de729290fab4e50d429;p=kernel%2Fkernel-generic.git [PATCH] drivers/serial NULL noise removal Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c index db8607e..f5051cf 100644 --- a/drivers/serial/uartlite.c +++ b/drivers/serial/uartlite.c @@ -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; }