summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/sili.c4
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