aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-08-20 17:19:40 +0000
committerWarner Losh <imp@FreeBSD.org>2020-08-20 17:19:40 +0000
commite0d14216c1124fccfe4500cc6d27ea91f459e83b (patch)
tree292b23376d7e69e664f84931c5a45e02cff98a9e /sys/dev/fdc
parent553f053bfadcc9950d0698a06adf6bc4dd9380c9 (diff)
downloadsrc-e0d14216c1124fccfe4500cc6d27ea91f459e83b.tar.gz
src-e0d14216c1124fccfe4500cc6d27ea91f459e83b.zip
Notes
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc_pccard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc_pccard.c b/sys/dev/fdc/fdc_pccard.c
index 364e2104b648..7b7f88648884 100644
--- a/sys/dev/fdc/fdc_pccard.c
+++ b/sys/dev/fdc/fdc_pccard.c
@@ -110,9 +110,10 @@ fdc_pccard_attach(device_t dev)
device_set_flags(child, 0x24);
error = bus_generic_attach(dev);
}
- if (error == 0)
+ if (error == 0) {
+ gone_in_dev(dev, 13, "pccard removed");
fdc_start_worker(dev);
- else
+ } else
fdc_release_resources(fdc);
return (error);
}