From dfd1f7fd50fffaf75541921fcf86454cd8eb3614 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Jun 2004 09:47:26 +0000 Subject: Do the dreaded s/dev_t/struct cdev */ Bump __FreeBSD_version accordingly. --- sys/dev/rp/rp.c | 10 +++++----- sys/dev/rp/rpreg.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/dev/rp') diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index fc5241d..3c092f5 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -802,7 +802,7 @@ rp_attachcommon(CONTROLLER_T *ctlp, int num_aiops, int num_ports) int retval; struct rp_port *rp; struct tty *tty; - dev_t *dev_nodes; + struct cdev **dev_nodes; unit = device_get_unit(ctlp->dev); @@ -949,7 +949,7 @@ rp_releaseresource(CONTROLLER_t *ctlp) static int rpopen(dev, flag, mode, td) - dev_t dev; + struct cdev *dev; int flag, mode; struct thread *td; { @@ -1108,7 +1108,7 @@ out2: static int rpclose(dev, flag, mode, td) - dev_t dev; + struct cdev *dev; int flag, mode; struct thread *td; { @@ -1182,7 +1182,7 @@ rphardclose(struct rp_port *rp) static int rpwrite(dev, uio, flag) - dev_t dev; + struct cdev *dev; struct uio *uio; int flag; { @@ -1222,7 +1222,7 @@ rpdtrwakeup(void *chan) static int rpioctl(dev, cmd, data, flag, td) - dev_t dev; + struct cdev *dev; u_long cmd; caddr_t data; int flag; diff --git a/sys/dev/rp/rpreg.h b/sys/dev/rp/rpreg.h index a7cde1b..6852f7c 100644 --- a/sys/dev/rp/rpreg.h +++ b/sys/dev/rp/rpreg.h @@ -371,7 +371,7 @@ struct CONTROLLER_str struct tty *tty; /* tty */ /* Device nodes */ - dev_t *dev_nodes; + struct cdev **dev_nodes; /* Bus-specific properties */ void *bus_ctlp; -- cgit v1.1