summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-11-03 19:18:48 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-11-03 19:18:48 +0000
commitebeb930e18ea47f363334e3dd38da969d738e221 (patch)
tree8be3b624d173a75ed4f522e6453c440ffe27d9cf /sys/dev/ic
parent756faa6aed213e1774aae4962b3ae735800b6b5b (diff)
oops missed to set devtype here rather than in sti_sgc.c:1.23
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/sti.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/sti.c b/sys/dev/ic/sti.c
index c37821d849f..1427b2e4fad 100644
--- a/sys/dev/ic/sti.c
+++ b/sys/dev/ic/sti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti.c,v 1.36 2004/09/14 22:27:04 mickey Exp $ */
+/* $OpenBSD: sti.c,v 1.37 2004/11/03 19:18:47 mickey Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -131,6 +131,8 @@ sti_attach_common(sc)
struct sti_cfg *cc;
int error, size, i;
+ sc->sc_devtype = bus_space_read_1(sc->memt, sc->romh, 3);
+
/* { extern int pmapdebug; pmapdebug = 0xfffff; } */
dd = &sc->sc_dd;
if (sc->sc_devtype == STI_DEVTYPE1) {