diff options
| author | cegger <cegger@NetBSD.org> | 2008-06-11 19:28:52 +0000 |
|---|---|---|
| committer | cegger <cegger@NetBSD.org> | 2008-06-11 19:28:52 +0000 |
| commit | 6a2e2c8cfd50c64fbea95b584cc3576d9bdf5cfc (patch) | |
| tree | 194baf61728ba91be4bdde8076165014116a7289 /sys/dev/ppbus | |
| parent | 78ad67cc02ea007b09a4bd5cc162825160ba0cf3 (diff) | |
use device_lookup_private to get softc
Diffstat (limited to 'sys/dev/ppbus')
| -rw-r--r-- | sys/dev/ppbus/pps_ppbus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ppbus/pps_ppbus.c b/sys/dev/ppbus/pps_ppbus.c index 26b28cbfce0..0df6714a69b 100644 --- a/sys/dev/ppbus/pps_ppbus.c +++ b/sys/dev/ppbus/pps_ppbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: pps_ppbus.c,v 1.13 2008/04/21 12:56:31 ad Exp $ */ +/* $NetBSD: pps_ppbus.c,v 1.14 2008/06/11 19:28:52 cegger Exp $ */ /* * ported to timecounters by Frank Kardel 2006 @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pps_ppbus.c,v 1.13 2008/04/21 12:56:31 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pps_ppbus.c,v 1.14 2008/06/11 19:28:52 cegger Exp $"); #include "opt_ntp.h" @@ -97,7 +97,7 @@ ppsopen(dev_t dev, int flags, int fmt, struct lwp *l) struct pps_softc *sc; int res, weg = 0; - sc = device_lookup(&pps_cd, minor(dev)); + sc = device_lookup_private(&pps_cd, minor(dev)); if (!sc) return (ENXIO); @@ -136,7 +136,7 @@ ppsopen(dev_t dev, int flags, int fmt, struct lwp *l) static int ppsclose(dev_t dev, int flags, int fmt, struct lwp *l) { - struct pps_softc *sc = device_lookup(&pps_cd, minor(dev)); + struct pps_softc *sc = device_lookup_private(&pps_cd, minor(dev)); device_t ppbus = sc->ppbus; sc->busy = 0; @@ -176,7 +176,7 @@ ppsintr(void *arg) static int ppsioctl(dev_t dev, u_long cmd, void *data, int flags, struct lwp *l) { - struct pps_softc *sc = device_lookup(&pps_cd, minor(dev)); + struct pps_softc *sc = device_lookup_private(&pps_cd, minor(dev)); int error = 0; switch (cmd) { |
