diff options
| author | cegger <cegger@NetBSD.org> | 2008-06-12 21:46:21 +0000 |
|---|---|---|
| committer | cegger <cegger@NetBSD.org> | 2008-06-12 21:46:21 +0000 |
| commit | 17dbee905cecdde65750df0e8b2e2b2be46c86d7 (patch) | |
| tree | c4f08837b022aa5ae3ccf2ac4a0faeed467522e8 /sys/dev/bluetooth | |
| parent | b0e5b3dc77011fd80fe0a8fccde4da80334771c2 (diff) | |
use device_lookup_private to get softc
Diffstat (limited to 'sys/dev/bluetooth')
| -rw-r--r-- | sys/dev/bluetooth/bcsp.c | 6 | ||||
| -rw-r--r-- | sys/dev/bluetooth/bthub.c | 6 | ||||
| -rw-r--r-- | sys/dev/bluetooth/btuart.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/bluetooth/bcsp.c b/sys/dev/bluetooth/bcsp.c index 3b283e5f3db..5c2942fc85a 100644 --- a/sys/dev/bluetooth/bcsp.c +++ b/sys/dev/bluetooth/bcsp.c @@ -1,4 +1,4 @@ -/* $NetBSD: bcsp.c,v 1.12 2008/03/22 17:20:31 plunky Exp $ */ +/* $NetBSD: bcsp.c,v 1.13 2008/06/12 21:47:11 cegger Exp $ */ /* * Copyright (c) 2007 KIYOHARA Takashi * All rights reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.12 2008/03/22 17:20:31 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.13 2008/06/12 21:47:11 cegger Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -396,7 +396,7 @@ bcspopen(dev_t device __unused, struct tty *tp) cfdata = malloc(sizeof(struct cfdata), M_DEVBUF, M_WAITOK); for (unit = 0; unit < bcsp_cd.cd_ndevs; unit++) - if (bcsp_cd.cd_devs[unit] == NULL) + if (device_lookup(&bcsp_cd, unit) == NULL) break; cfdata->cf_name = name; cfdata->cf_atname = name; diff --git a/sys/dev/bluetooth/bthub.c b/sys/dev/bluetooth/bthub.c index 2e1da378652..176472bebd4 100644 --- a/sys/dev/bluetooth/bthub.c +++ b/sys/dev/bluetooth/bthub.c @@ -1,4 +1,4 @@ -/* $NetBSD: bthub.c,v 1.13 2008/03/28 21:17:37 plunky Exp $ */ +/* $NetBSD: bthub.c,v 1.14 2008/06/12 21:47:11 cegger Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bthub.c,v 1.13 2008/03/28 21:17:37 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bthub.c,v 1.14 2008/06/12 21:47:11 cegger Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -171,7 +171,7 @@ bthub_pioctl(dev_t devno, unsigned long cmd, prop_dictionary_t dict, if (unit == bthub_cd.cd_ndevs) return ENXIO; - self = bthub_cd.cd_devs[unit]; + self = device_lookup(&bthub_cd, unit); if (self == NULL) continue; 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; |
