diff options
author | imp <imp@FreeBSD.org> | 2000-04-04 04:12:43 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-04-04 04:12:43 +0000 |
commit | 7a4fd4ca06b52312efb0de024c9eb1af461c1b29 (patch) | |
tree | 4412fb5f4a7b9274f91fb340a325b60a5818f97c /sys/dev/pccard | |
parent | 36139fd6806021354a06d19f463b05f85f3ccfc5 (diff) | |
download | FreeBSD-src-7a4fd4ca06b52312efb0de024c9eb1af461c1b29.zip FreeBSD-src-7a4fd4ca06b52312efb0de024c9eb1af461c1b29.tar.gz |
Fix pcic_detach_socket to get right pcic_handle.
Pass sc->dev rather than a bogusly cast pccard_softc *sc.
This allows us to insert and remove cards w/o panicing the kernel.
However, the cis isn't mapped in, so the pccard_scan_cis function
fails.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r-- | sys/dev/pccard/pccard_cis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pccard/pccard_cis.c b/sys/dev/pccard/pccard_cis.c index 779763d..344d26b 100644 --- a/sys/dev/pccard/pccard_cis.c +++ b/sys/dev/pccard/pccard_cis.c @@ -92,7 +92,7 @@ pccard_read_cis(struct pccard_softc *sc) state.pf = NULL; - if (pccard_scan_cis((struct device *)sc, pccard_parse_cis_tuple, + if (pccard_scan_cis(sc->dev, pccard_parse_cis_tuple, &state) == -1) state.card->error++; } |