From 72689e6707c297b721969f8e6ae6059aa92f92ed Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 20 Apr 2003 00:26:49 -0700 Subject: [PATCH] [PATCH] Minor fix for driver/serial/core.c From: Jean Tourrilhes The following command will do nothing at all on 2.5.X : setserial /dev/ttyS0 uart none --- drivers/serial/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/serial/core.c b/drivers/serial/core.c index b461093a13ccf..c6207f0737b7d 100644 --- a/drivers/serial/core.c +++ b/drivers/serial/core.c @@ -782,8 +782,12 @@ uart_set_info(struct uart_state *state, struct serial_struct *newinfo) /* * Claim and map the new regions */ - if (port->type != PORT_UNKNOWN) + if (port->type != PORT_UNKNOWN) { retval = port->ops->request_port(port); + } else { + /* Always success - Jean II */ + retval = 0; + } /* * If we fail to request resources for the -- 2.53.0