diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2005-12-20 20:03:16 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2005-12-20 20:03:16 +0000 |
| commit | 4c2546c1a91c1ca5449baefac51e2055703b218b (patch) | |
| tree | 3bf15a6bdca67532dc9b0e447b570c3ce3ff0c35 /sys/pci | |
| parent | 04d6a912e4b5bd5a02ff17f87897f007f618f056 (diff) | |
Notes
Diffstat (limited to 'sys/pci')
| -rw-r--r-- | sys/pci/agp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c index d074f1801328..b44cfc94a31b 100644 --- a/sys/pci/agp.c +++ b/sys/pci/agp.c @@ -253,9 +253,10 @@ int agp_generic_detach(device_t dev) { struct agp_softc *sc = device_get_softc(dev); + + destroy_dev(sc->as_devnode); bus_release_resource(dev, SYS_RES_MEMORY, AGP_APBASE, sc->as_aperture); mtx_destroy(&sc->as_lock); - destroy_dev(sc->as_devnode); agp_flush_cache(); return 0; } |
