Call kbd_attach() only when KBD_INSTALL_CDEV is enabled as the function

is only defined in that case.
This commit is contained in:
marcel 2004-04-02 05:59:06 +00:00
parent 90df1ff5bf
commit 62439c4680

View File

@ -224,7 +224,9 @@ sunkbd_attach(struct uart_softc *sc)
if (sc->sc_sysdev != NULL) {
sunkbd_softc.sc_uart = sc;
#ifdef KBD_INSTALL_CDEV
kbd_attach(&sunkbd_softc.sc_kbd);
#endif
sunkbd_enable(&sunkbd_softc.sc_kbd);
swi_add(&tty_ithd, uart_driver_name, sunkbd_uart_intr,