Skip to content

Commit fe310f7

Browse files
andy-shevgregkh
authored andcommitted
serial: 8250_of: Remove unneeded ->iotype assignment
If ->iobase is set the default will be UPIO_PORT for ->iotype after the uart_read_and_validate_port_properties() call. Hence no need to assign that explicitly. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1239754 commit fe310f7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/tty/serial/8250/8250_of.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
110110
spin_lock_init(&port->lock);
111111

112112
if (resource_type(&resource) == IORESOURCE_IO) {
113-
port->iotype = UPIO_PORT;
114113
port->iobase = resource.start;
115114
} else {
116115
port->mapbase = resource.start;

0 commit comments

Comments
 (0)