diff options
author | imp <imp@FreeBSD.org> | 2002-11-17 04:52:37 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-11-17 04:52:37 +0000 |
commit | fc2660e3462872b226d857b6286a042076e9ffaf (patch) | |
tree | 2dcfd5a05b56c8992a84b3e5387951656d9efaf7 /sys/dev | |
parent | 404161b0ebc663732ff605fa1cec5fc6f2cbf76d (diff) | |
download | FreeBSD-src-fc2660e3462872b226d857b6286a042076e9ffaf.zip FreeBSD-src-fc2660e3462872b226d857b6286a042076e9ffaf.tar.gz |
DETACH_FORCE was removed recently. Remove it here, even though this
isn't supported.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pcic/i82365.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/pcic/i82365.c b/sys/dev/pcic/i82365.c index 387927b..fc3c623 100644 --- a/sys/dev/pcic/i82365.c +++ b/sys/dev/pcic/i82365.c @@ -95,7 +95,7 @@ static int pcic_activate(device_t dev); static void pcic_intr(void *arg); static void pcic_attach_card(struct pcic_handle *); -static void pcic_detach_card(struct pcic_handle *, int); +static void pcic_detach_card(struct pcic_handle *); static void pcic_chip_do_mem_map(struct pcic_handle *, int); static void pcic_chip_do_io_map(struct pcic_handle *, int); @@ -563,7 +563,7 @@ pcic_event_thread(void *arg) splx(s); DEVPRINTF((h->dev, "removal event\n")); - pcic_detach_card(h, DETACH_FORCE); + pcic_detach_card(h); break; default: @@ -670,7 +670,7 @@ pcic_intr_socket(struct pcic_handle *h) if (h->laststate == PCIC_LASTSTATE_PRESENT) { /* Deactivate the card now. */ DEVPRINTF((h->dev, "detaching card\n")); - pcic_detach_card(h, DETACH_FORCE); + pcic_detach_card(h); DEVPRINTF((h->dev,"enqueing REMOVAL event\n")); pcic_queue_event(h, PCIC_EVENT_REMOVAL); } @@ -720,14 +720,12 @@ pcic_attach_card(struct pcic_handle *h) } static void -pcic_detach_card(struct pcic_handle *h, int flags) +pcic_detach_card(struct pcic_handle *h) { if (h->flags & PCIC_FLAG_CARDP) { h->flags &= ~PCIC_FLAG_CARDP; /* call the MI detach function */ - CARD_DETACH_CARD(h->dev, flags); - } else { - DPRINTF(("pcic_detach_card: already detached\n")); + CARD_DETACH_CARD(h->dev); } } |