aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2000-08-30 06:57:38 +0000
committerWarner Losh <imp@FreeBSD.org>2000-08-30 06:57:38 +0000
commit23b7b12ddc0ebe5cac963f3ed0d916d639362e54 (patch)
tree2c982f3f47f957f9b4d25b3445ab9db3f78cfc29 /sys/pccard
parentf5c4d53efc98baa07554c96fed6a0ebab566c762 (diff)
downloadsrc-23b7b12ddc0ebe5cac963f3ed0d916d639362e54.tar.gz
src-23b7b12ddc0ebe5cac963f3ed0d916d639362e54.zip
Add a detach method to allow this device to be unloaded.
Notes
Notes: svn path=/head/; revision=65242
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pcic_pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c
index 6da55bd77771..4d4c18d5e7b2 100644
--- a/sys/pccard/pcic_pci.c
+++ b/sys/pccard/pcic_pci.c
@@ -392,10 +392,17 @@ pcic_pci_attach(device_t dev)
return 0;
}
+static int
+pcic_pci_detach(device_t dev)
+{
+ return 0;
+}
+
static device_method_t pcic_pci_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, pcic_pci_probe),
DEVMETHOD(device_attach, pcic_pci_attach),
+ DEVMETHOD(device_detach, pcic_pci_detach),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(device_shutdown, bus_generic_shutdown),