diff options
author | marcel <marcel@FreeBSD.org> | 2004-04-02 05:59:06 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-04-02 05:59:06 +0000 |
commit | 62439c46803ce56cf5acd2632dda70528f6dfb5e (patch) | |
tree | 0247b9289ecef920756975b4ced3c70cdbbdc528 /sys/dev/uart/uart_kbd_sun.c | |
parent | 90df1ff5bfa790fbfffd756ca196b0cd76526909 (diff) | |
download | FreeBSD-src-62439c46803ce56cf5acd2632dda70528f6dfb5e.zip FreeBSD-src-62439c46803ce56cf5acd2632dda70528f6dfb5e.tar.gz |
Call kbd_attach() only when KBD_INSTALL_CDEV is enabled as the function
is only defined in that case.
Diffstat (limited to 'sys/dev/uart/uart_kbd_sun.c')
-rw-r--r-- | sys/dev/uart/uart_kbd_sun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_kbd_sun.c b/sys/dev/uart/uart_kbd_sun.c index 7b99ec2..0525418 100644 --- a/sys/dev/uart/uart_kbd_sun.c +++ b/sys/dev/uart/uart_kbd_sun.c @@ -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, |