summaryrefslogtreecommitdiff
path: root/sys/dev/bluetooth/btuart.c
diff options
context:
space:
mode:
authorcegger <cegger@NetBSD.org>2008-06-12 21:46:21 +0000
committercegger <cegger@NetBSD.org>2008-06-12 21:46:21 +0000
commit17dbee905cecdde65750df0e8b2e2b2be46c86d7 (patch)
treec4f08837b022aa5ae3ccf2ac4a0faeed467522e8 /sys/dev/bluetooth/btuart.c
parentb0e5b3dc77011fd80fe0a8fccde4da80334771c2 (diff)
use device_lookup_private to get softc
Diffstat (limited to 'sys/dev/bluetooth/btuart.c')
-rw-r--r--sys/dev/bluetooth/btuart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bluetooth/btuart.c b/sys/dev/bluetooth/btuart.c
index b0cdec8185e..de06972ab47 100644
--- a/sys/dev/bluetooth/btuart.c
+++ b/sys/dev/bluetooth/btuart.c
@@ -1,4 +1,4 @@
-/* $NetBSD: btuart.c,v 1.18 2008/04/15 11:17:48 plunky Exp $ */
+/* $NetBSD: btuart.c,v 1.19 2008/06/12 21:47:11 cegger Exp $ */
/*-
* Copyright (c) 2006, 2007 KIYOHARA Takashi
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: btuart.c,v 1.18 2008/04/15 11:17:48 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btuart.c,v 1.19 2008/06/12 21:47:11 cegger Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -244,7 +244,7 @@ btuartopen(dev_t devno __unused, struct tty *tp)
cfdata = malloc(sizeof(struct cfdata), M_DEVBUF, M_WAITOK);
for (unit = 0; unit < btuart_cd.cd_ndevs; unit++)
- if (btuart_cd.cd_devs[unit] == NULL)
+ if (device_lookup(&btuart_cd, unit) == NULL)
break;
cfdata->cf_name = btuart_cd.cd_name;