summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/olpt.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-08-27 07:26:26 +0000
committerjulian <julian@FreeBSD.org>1999-08-27 07:26:26 +0000
commita0797ab43e7d1e9c6641c6f2f89994f1f8dda27f (patch)
tree3b869586ea654277810c20b32801d13ccc0f0866 /sys/pc98/cbus/olpt.c
parentef5c098b80b05fce18894be29b3297b9f4436089 (diff)
downloadFreeBSD-src-a0797ab43e7d1e9c6641c6f2f89994f1f8dda27f.zip
FreeBSD-src-a0797ab43e7d1e9c6641c6f2f89994f1f8dda27f.tar.gz
Add PHK's make_dev() into more places where DEVFS used to be
hooked in directly. Alpha change checked by: Matthew Jacob <mjacob@feral.com> i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de> and Hellmuth Michaelis <hm@hcs.de> PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org>
Diffstat (limited to 'sys/pc98/cbus/olpt.c')
-rw-r--r--sys/pc98/cbus/olpt.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/sys/pc98/cbus/olpt.c b/sys/pc98/cbus/olpt.c
index 5faeae4..fd35291 100644
--- a/sys/pc98/cbus/olpt.c
+++ b/sys/pc98/cbus/olpt.c
@@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
- * $Id: olpt.c,v 1.1 1999/06/18 14:48:26 kato Exp $
+ * $Id: olpt.c,v 1.2 1999/07/06 19:23:20 des Exp $
*/
/*
@@ -102,7 +102,6 @@
*/
#include "olpt.h"
-#include "opt_devfs.h"
#include "opt_inet.h"
#ifdef PC98
#undef INET /* PLIP is not supported for old PC-98 */
@@ -115,10 +114,6 @@
#include <sys/kernel.h>
#include <sys/uio.h>
#include <sys/syslog.h>
-#ifdef DEVFS
-#include <sys/devfsext.h>
-#endif /*DEVFS*/
-
#include <machine/clock.h>
#include <machine/lpt.h>
@@ -238,10 +233,6 @@ static struct lpt_softc {
u_char *sc_ifbuf;
int sc_iferrs;
#endif
-#ifdef DEVFS
- void *devfs_token;
- void *devfs_token_ctl;
-#endif
} lpt_sc[NOLPT] ;
/* bits for state */
@@ -509,15 +500,10 @@ lptattach(struct isa_device *isdp)
}
lprintf(("irq %x\n", sc->sc_irq));
-#ifdef DEVFS
/* XXX what to do about the flags in the minor number? */
- sc->devfs_token = devfs_add_devswf(&lpt_cdevsw,
- unit, DV_CHR,
- UID_ROOT, GID_WHEEL, 0600, "lpt%d", unit);
- sc->devfs_token_ctl = devfs_add_devswf(&lpt_cdevsw,
- unit | LP_BYPASS, DV_CHR,
- UID_ROOT, GID_WHEEL, 0600, "lpctl%d", unit);
-#endif
+ make_dev(&lpt_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, "lpt%d", unit);
+ make_dev(&lpt_cdevsw, unit | LP_BYPASS,
+ UID_ROOT, GID_WHEEL, 0600, "lpctl%d", unit);
return (1);
}
OpenPOWER on IntegriCloud