diff --git a/sys/dev/uart/uart_cpu_alpha.c b/sys/dev/uart/uart_cpu_alpha.c index f7a2f8bb5d4..00aa1de354b 100644 --- a/sys/dev/uart/uart_cpu_alpha.c +++ b/sys/dev/uart/uart_cpu_alpha.c @@ -95,6 +95,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) } /* Check the environment. */ + di->ops = uart_ns8250_ops; if (uart_getenv(devtype, di) == 0) return (0); diff --git a/sys/dev/uart/uart_cpu_amd64.c b/sys/dev/uart/uart_cpu_amd64.c index 498496b86b9..fb8b99476eb 100644 --- a/sys/dev/uart/uart_cpu_amd64.c +++ b/sys/dev/uart/uart_cpu_amd64.c @@ -52,6 +52,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) unsigned int i, ivar; /* Check the environment. */ + di->ops = uart_ns8250_ops; if (uart_getenv(devtype, di) == 0) return (0); diff --git a/sys/dev/uart/uart_cpu_i386.c b/sys/dev/uart/uart_cpu_i386.c index 673dde54b25..c8e2e2ec721 100644 --- a/sys/dev/uart/uart_cpu_i386.c +++ b/sys/dev/uart/uart_cpu_i386.c @@ -52,6 +52,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) unsigned int i, ivar; /* Check the environment. */ + di->ops = uart_ns8250_ops; if (uart_getenv(devtype, di) == 0) return (0); diff --git a/sys/dev/uart/uart_cpu_ia64.c b/sys/dev/uart/uart_cpu_ia64.c index cf1e7e178e9..496049200c2 100644 --- a/sys/dev/uart/uart_cpu_ia64.c +++ b/sys/dev/uart/uart_cpu_ia64.c @@ -104,5 +104,6 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) } /* Check the environment. */ + di->ops = uart_ns8250_ops; return (uart_getenv(devtype, di)); } diff --git a/sys/dev/uart/uart_cpu_pc98.c b/sys/dev/uart/uart_cpu_pc98.c index 0ae25596772..0887a676662 100644 --- a/sys/dev/uart/uart_cpu_pc98.c +++ b/sys/dev/uart/uart_cpu_pc98.c @@ -52,6 +52,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) unsigned int i, ivar, flags; /* Check the environment. */ + di->ops = uart_ns8250_ops; if (uart_getenv(devtype, di) == 0) return (0); diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c index 14ce64b1b84..c9b6fe7ab50 100644 --- a/sys/dev/uart/uart_subr.c +++ b/sys/dev/uart/uart_subr.c @@ -182,7 +182,6 @@ uart_getenv(int devtype, struct uart_devinfo *di) return (ENXIO); /* Set defaults. */ - di->ops = uart_ns8250_ops; di->bas.chan = 0; di->bas.regshft = 0; di->bas.rclk = 0;