summaryrefslogtreecommitdiff
path: root/sys/dev/gpib
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2006-03-28 17:38:24 +0000
committerthorpej <thorpej@NetBSD.org>2006-03-28 17:38:24 +0000
commit39cd836ee121586d7aeef7facf29276e7a66a7fb (patch)
treed6ca200abe74ecb5d379f372d93e5201b2677f51 /sys/dev/gpib
parentd717ea85c2362092cc30ae655b160d0c9cf47294 (diff)
Use device_unit().
Diffstat (limited to 'sys/dev/gpib')
-rw-r--r--sys/dev/gpib/hil_gpib.c6
-rw-r--r--sys/dev/gpib/ppi.c8
-rw-r--r--sys/dev/gpib/rd.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/gpib/hil_gpib.c b/sys/dev/gpib/hil_gpib.c
index 6cc23b1538a..4576ee8e1f8 100644
--- a/sys/dev/gpib/hil_gpib.c
+++ b/sys/dev/gpib/hil_gpib.c
@@ -1,7 +1,7 @@
-/* $NetBSD: hil_gpib.c,v 1.4 2005/12/11 12:21:21 christos Exp $ */
+/* $NetBSD: hil_gpib.c,v 1.5 2006/03/28 17:38:30 thorpej Exp $ */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hil_gpib.c,v 1.4 2005/12/11 12:21:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hil_gpib.c,v 1.5 2006/03/28 17:38:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -119,7 +119,7 @@ hilstart(v)
{
struct hil_softc *sc = v;
- DPRINTF(HDB_FOLLOW, ("hilstart(%x)\n", sc->sc_dev.dv_unit));
+ DPRINTF(HDB_FOLLOW, ("hilstart(%x)\n", device_unit(&sc->sc_dev)));
sc->sc_flags &= ~HILF_DELAY;
}
diff --git a/sys/dev/gpib/ppi.c b/sys/dev/gpib/ppi.c
index 9932913f288..f328dffa397 100644
--- a/sys/dev/gpib/ppi.c
+++ b/sys/dev/gpib/ppi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ppi.c,v 1.4 2005/12/11 12:21:21 christos Exp $ */
+/* $NetBSD: ppi.c,v 1.5 2006/03/28 17:38:30 thorpej Exp $ */
/*-
* Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.4 2005/12/11 12:21:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.5 2006/03/28 17:38:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -257,7 +257,7 @@ ppistart(v)
{
struct ppi_softc *sc = v;
- DPRINTF(PDB_FOLLOW, ("ppistart(%x)\n", sc->sc_dev.dv_unit));
+ DPRINTF(PDB_FOLLOW, ("ppistart(%x)\n", device_unit(&sc->sc_dev)));
sc->sc_flags &= ~PPIF_DELAY;
wakeup(sc);
@@ -269,7 +269,7 @@ ppitimo(arg)
{
struct ppi_softc *sc = arg;
- DPRINTF(PDB_FOLLOW, ("ppitimo(%x)\n", sc->sc_dev.dv_unit));
+ DPRINTF(PDB_FOLLOW, ("ppitimo(%x)\n", device_unit(&sc->sc_dev)));
sc->sc_flags &= ~(PPIF_UIO|PPIF_TIMO);
wakeup(sc);
diff --git a/sys/dev/gpib/rd.c b/sys/dev/gpib/rd.c
index 9949861b033..f47883cc4ba 100644
--- a/sys/dev/gpib/rd.c
+++ b/sys/dev/gpib/rd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rd.c,v 1.9 2006/03/25 22:59:59 thorpej Exp $ */
+/* $NetBSD: rd.c,v 1.10 2006/03/28 17:38:30 thorpej Exp $ */
/*-
* Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.9 2006/03/25 22:59:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.10 2006/03/28 17:38:30 thorpej Exp $");
#include "rnd.h"
@@ -492,7 +492,7 @@ rdgetinfo(sc)
/*
* Call the generic disklabel extraction routine
*/
- msg = readdisklabel(RDMAKEDEV(0, sc->sc_dev.dv_unit, RAW_PART),
+ msg = readdisklabel(RDMAKEDEV(0, device_unit(&sc->sc_dev), RAW_PART),
rdstrategy, lp, NULL);
if (msg == NULL)
return (0);