Skip to content
Snippets Groups Projects
Commit b81831c6 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] drivers/serial NULL noise removal

parent f2e97df6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment