aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1997-08-29 00:30:11 +0000
committerMike Smith <msmith@FreeBSD.org>1997-08-29 00:30:11 +0000
commitef6ab9c7ee2e61d9b33a0c231a8babf3ef3ade78 (patch)
tree76f1d9a46b49592c97fbd0f2a79c6e126bb3fa36 /sys/dev
parent9295bb8d0deeb4738e8f02135cfc19a2d2a05f36 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ppbus/nlpt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/ppbus/nlpt.c b/sys/dev/ppbus/nlpt.c
index 22b6381b2aa2..6f04c09546da 100644
--- a/sys/dev/ppbus/nlpt.c
+++ b/sys/dev/ppbus/nlpt.c
@@ -47,7 +47,7 @@
*
* from: unknown origin, 386BSD 0.1
* From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp
- * $Id: nlpt.c,v 1.3 1997/08/28 10:15:11 msmith Exp $
+ * $Id: nlpt.c,v 1.4 1997/08/28 11:12:08 msmith Exp $
*/
/*
@@ -366,13 +366,12 @@ nlptattach(struct ppb_device *dev)
lpt_release_ppbus(sc);
#ifdef DEVFS
- /* XXX what to do about the flags in the minor number? */
sc->devfs_token = devfs_add_devswf(&nlpt_cdevsw,
- unit, DV_CHR,
- UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d", unit);
+ dev->id_unit, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d", dev->id_unit);
sc->devfs_token_ctl = devfs_add_devswf(&nlpt_cdevsw,
- unit | LP_BYPASS, DV_CHR,
- UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d.ctl", unit);
+ dev->id_unit | LP_BYPASS, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d.ctl", dev->id_unit);
#endif
return (1);