mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 15:22:21 -04:00
serial: max3100: use new UPIO_BUS as iotype
Now that we have a new UPIO_BUS I/O type, use it to register our serial port. This allows the driver to work properly when using DT where membase/iobase are not set. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://patch.msgid.link/20260521-tty-upio-v3-10-bf74567994a0@dimonoff.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
03efc41d6b
commit
bef5e068b8
@@ -725,6 +725,7 @@ static int max3100_probe(struct spi_device *spi)
|
||||
max3100s[i]->port.ops = &max3100_ops;
|
||||
max3100s[i]->port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF;
|
||||
max3100s[i]->port.line = i;
|
||||
max3100s[i]->port.iotype = UPIO_BUS;
|
||||
max3100s[i]->port.type = PORT_MAX3100;
|
||||
max3100s[i]->port.dev = &spi->dev;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user