summaryrefslogtreecommitdiff
path: root/bsd-core/tdfx_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/tdfx_drv.c')
-rw-r--r--bsd-core/tdfx_drv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bsd-core/tdfx_drv.c b/bsd-core/tdfx_drv.c
index 8fafe0fe..8d9e272f 100644
--- a/bsd-core/tdfx_drv.c
+++ b/bsd-core/tdfx_drv.c
@@ -82,10 +82,13 @@ static int
tdfx_detach(device_t nbdev)
{
struct drm_device *dev = device_get_softc(nbdev);
+ int ret;
+
+ ret = drm_detach(nbdev);
free(dev->driver, M_DRM);
- return drm_detach(nbdev);
+ return ret;
}
static device_method_t tdfx_methods[] = {