diff options
| author | thorpej <thorpej@NetBSD.org> | 2006-03-28 17:38:24 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2006-03-28 17:38:24 +0000 |
| commit | 39cd836ee121586d7aeef7facf29276e7a66a7fb (patch) | |
| tree | d6ca200abe74ecb5d379f372d93e5201b2677f51 /sys/dev/bluetooth | |
| parent | d717ea85c2362092cc30ae655b160d0c9cf47294 (diff) | |
Use device_unit().
Diffstat (limited to 'sys/dev/bluetooth')
| -rw-r--r-- | sys/dev/bluetooth/bthci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bluetooth/bthci.c b/sys/dev/bluetooth/bthci.c index d9954c3f66b..a7d3df95fec 100644 --- a/sys/dev/bluetooth/bthci.c +++ b/sys/dev/bluetooth/bthci.c @@ -1,4 +1,4 @@ -/* $NetBSD: bthci.c,v 1.19 2006/02/20 16:50:37 thorpej Exp $ */ +/* $NetBSD: bthci.c,v 1.20 2006/03/28 17:38:29 thorpej Exp $ */ /* * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bthci.c,v 1.19 2006/02/20 16:50:37 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bthci.c,v 1.20 2006/03/28 17:38:29 thorpej Exp $"); #include "bthcidrv.h" @@ -210,7 +210,7 @@ bthci_detach(struct device *self, int flags) maj = cdevsw_lookup_major(&bthci_cdevsw); /* Nuke the vnodes for any open instances (calls close). */ - mn = self->dv_unit; + mn = device_unit(self); vdevgone(maj, mn, mn, VCHR); DPRINTFN(1, ("%s: driver detached\n", __func__)); |
