diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-08 06:40:31 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-08 06:40:31 +0000 |
| commit | 4be2eb8c49a786d78796ed36e7ceaa8fdb198b27 (patch) | |
| tree | dd19261ed7efb2709a39ec70feaa9147f1b247d7 /sys/dev | |
| parent | da8f43d1fccac244520b8fa56ef6911e25074351 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/snp/snp.c | 2 | ||||
| -rw-r--r-- | sys/dev/vinum/vinumio.c | 4 | ||||
| -rw-r--r-- | sys/dev/vinum/vinumrequest.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index ebffb2a28e2de..204088c639e10 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -71,7 +71,7 @@ snpdevtotty (dev) maj = major(dev); if ((u_int)maj >= nchrdev) return (NULL); - cdp = cdevsw[maj]; + cdp = devsw(dev); if (cdp == NULL) return (NULL); return ((*cdp->d_devtotty)(dev)); diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index 2651205fd9287..9faf7679cc7ab 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumio.c,v 1.23 1999/05/07 01:32:09 grog Exp $ + * $Id: vinumio.c,v 1.24 1999/05/07 10:10:04 phk Exp $ */ #include <dev/vinum/vinumhdr.h> @@ -285,7 +285,7 @@ driveio(struct drive *drive, char *buf, size_t length, off_t offset, int flag) bp->b_bcount = len; bp->b_bufsize = len; - (*bdevsw(major(bp->b_dev))->d_strategy) (bp); /* initiate the transfer */ + (*bdevsw(bp->b_dev)->d_strategy) (bp); /* initiate the transfer */ error = biowait(bp); printf("driveio: %s dev 0x%x, block 0x%x, len 0x%lx, error %d\n", /* XXX */ diff --git a/sys/dev/vinum/vinumrequest.c b/sys/dev/vinum/vinumrequest.c index 477ec4065f4ec..a05c6e6ea525b 100644 --- a/sys/dev/vinum/vinumrequest.c +++ b/sys/dev/vinum/vinumrequest.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumrequest.c,v 1.21 1999/05/07 08:07:09 grog Exp $ + * $Id: vinumrequest.c,v 1.22 1999/05/07 10:10:07 phk Exp $ */ #include <dev/vinum/vinumhdr.h> @@ -390,7 +390,7 @@ launch_requests(struct request *rq, int reviveok) logrq(loginfo_rqe, (union rqinfou) rqe, rq->bp); #endif /* fire off the request */ - (*bdevsw(major(rqe->b.b_dev))->d_strategy) (&rqe->b); + (*bdevsw(rqe->b.b_dev)->d_strategy) (&rqe->b); } /* XXX Do we need caching? Think about this more */ } @@ -865,7 +865,7 @@ sdio(struct buf *bp) sbp->b.b_vp->v_numoutput); #endif s = splbio(); - (*bdevsw(major(sbp->b.b_dev))->d_strategy) (&sbp->b); + (*bdevsw(sbp->b.b_dev)->d_strategy) (&sbp->b); splx(s); } |
