Module Name: src
Committed By: jmcneill
Date: Tue Jun 6 00:26:17 UTC 2017
Modified Files:
src/sys/dev/ic: pl050.c
Log Message:
Attach kbd slot to console
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ic/pl050.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/pl050.c
diff -u src/sys/dev/ic/pl050.c:1.1 src/sys/dev/ic/pl050.c:1.2
--- src/sys/dev/ic/pl050.c:1.1 Sat Jun 3 17:03:36 2017
+++ src/sys/dev/ic/pl050.c Tue Jun 6 00:26:16 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: pl050.c,v 1.1 2017/06/03 17:03:36 jmcneill Exp $ */
+/* $NetBSD: pl050.c,v 1.2 2017/06/06 00:26:16 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pl050.c,v 1.1 2017/06/03 17:03:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pl050.c,v 1.2 2017/06/06 00:26:16 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -164,6 +164,9 @@ plkmi_attach(struct plkmi_softc *sc)
sc->sc_slot = slot;
break;
}
+
+ if (sc->sc_slot == PCKBPORT_KBD_SLOT)
+ pckbport_cnattach(sc, &plkmi_ops, sc->sc_slot);
}
int