diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-03-31 03:11:39 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-03-31 03:11:39 +0000 |
commit | f500abba89c808c5070362134072310a4703180f (patch) | |
tree | 52e43857cc4c13eb3ae2b7234fcf108b0c74af8c /sys/dev/ic | |
parent | a3ae0c24713b83365ed908b47b5fac8286799b59 (diff) |
the attach glue now specifies how many ports the chip has.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/sili.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/sili.c b/sys/dev/ic/sili.c index b2eae893075..71b8c548d4c 100644 --- a/sys/dev/ic/sili.c +++ b/sys/dev/ic/sili.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sili.c,v 1.3 2007/03/30 04:50:54 dlg Exp $ */ +/* $OpenBSD: sili.c,v 1.4 2007/03/31 03:11:38 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -53,7 +53,6 @@ sili_attach(struct sili_softc *sc) { printf("\n"); - sc->sc_nports = 4; /* XXX magic */ if (sili_ports_alloc(sc) != 0) { /* error already printed by sili_port_alloc */ return (1); @@ -114,6 +113,7 @@ sili_ports_free(struct sili_softc *sc) { /* bus_space(9) says subregions dont have to be freed */ free(sc->sc_ports, M_DEVBUF); + sc->sc_ports = NULL; } u_int32_t |