Commit 72689e67 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Minor fix for driver/serial/core.c

From: Jean Tourrilhes <jt@bougret.hpl.hp.com>

	The following command will do nothing at all on 2.5.X :
		setserial /dev/ttyS0 uart none
parent d9a4b6c5
...@@ -782,8 +782,12 @@ uart_set_info(struct uart_state *state, struct serial_struct *newinfo) ...@@ -782,8 +782,12 @@ uart_set_info(struct uart_state *state, struct serial_struct *newinfo)
/* /*
* Claim and map the new regions * Claim and map the new regions
*/ */
if (port->type != PORT_UNKNOWN) if (port->type != PORT_UNKNOWN) {
retval = port->ops->request_port(port); retval = port->ops->request_port(port);
} else {
/* Always success - Jean II */
retval = 0;
}
/* /*
* If we fail to request resources for the * If we fail to request resources for the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment