aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty/serial/8250
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r--drivers/tty/serial/8250/8250_hisi_lpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_hisi_lpc.c b/drivers/tty/serial/8250/8250_hisi_lpc.c
index ff6e883e9bf4..eb596a484572 100644
--- a/drivers/tty/serial/8250/8250_hisi_lpc.c
+++ b/drivers/tty/serial/8250/8250_hisi_lpc.c
@@ -273,6 +273,11 @@ static struct platform_device hisi_lpc_uart = {
static int __init hisi_lpc_uart_init(void)
{
+ if (!arm64_isa_pio) {
+ pr_warn("no indirect ISA port I/O for Hisilicon LPC uart");
+ return -EINVAL;
+ }
+
return platform_device_register(&hisi_lpc_uart);
}