hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/tty/serial/arc_uart.c
....@@ -609,10 +609,11 @@
609609 }
610610 uart->baud = val;
611611
612
- port->membase = of_iomap(np, 0);
613
- if (!port->membase)
612
+ port->membase = devm_platform_ioremap_resource(pdev, 0);
613
+ if (IS_ERR(port->membase)) {
614614 /* No point of dev_err since UART itself is hosed here */
615
- return -ENXIO;
615
+ return PTR_ERR(port->membase);
616
+ }
616617
617618 port->irq = irq_of_parse_and_map(np, 0);
618619