We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 966c4e3 commit f93366fCopy full SHA for f93366f
drivers/tty/serial/8250/8250_dw.c
@@ -111,10 +111,13 @@ static int dw8250_probe(struct platform_device *pdev)
111
uart.port.irq = irq->start;
112
uart.port.handle_irq = dw8250_handle_irq;
113
uart.port.type = PORT_8250;
114
- uart.port.flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP |
115
- UPF_FIXED_PORT;
+ uart.port.flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_FIXED_PORT;
116
uart.port.dev = &pdev->dev;
117
+ uart.port.membase = ioremap(regs->start, resource_size(regs));
118
+ if (!uart.port.membase)
119
+ return -ENOMEM;
120
+
121
uart.port.iotype = UPIO_MEM;
122
uart.port.serial_in = dw8250_serial_in;
123
uart.port.serial_out = dw8250_serial_out;
0 commit comments