serial: liteuart: don't set unused port fields
authorGabriel Somlo <gsomlo@gmail.com>
Wed, 23 Nov 2022 13:04:50 +0000 (08:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:59:40 +0000 (14:59 +0100)
Remove regshift and iobase port fields, since they are unused
by the driver.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-5-gsomlo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/liteuart.c

index 989a4f8..c6eb7eb 100644 (file)
@@ -263,9 +263,7 @@ static int liteuart_probe(struct platform_device *pdev)
        port->iotype = UPIO_MEM;
        port->flags = UPF_BOOT_AUTOCONF;
        port->ops = &liteuart_ops;
-       port->regshift = 2;
        port->fifosize = 16;
-       port->iobase = 1;
        port->type = PORT_UNKNOWN;
        port->line = dev_id;
        spin_lock_init(&port->lock);