Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ata Use device_lookup() *more*.



details:   https://anonhg.NetBSD.org/src/rev/22f5420b7789
branches:  trunk
changeset: 494365:22f5420b7789
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 06 00:48:53 2000 +0000

description:
Use device_lookup() *more*.

diffstat:

 sys/dev/ata/wd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 6caa39057be8 -r 22f5420b7789 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c  Thu Jul 06 00:43:04 2000 +0000
+++ b/sys/dev/ata/wd.c  Thu Jul 06 00:48:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.208 2000/07/06 00:43:36 thorpej Exp $ */
+/*     $NetBSD: wd.c,v 1.209 2000/07/06 00:48:53 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998 Manuel Bouyer.  All rights reserved.
@@ -431,7 +431,7 @@
 wdstrategy(bp)
        struct buf *bp;
 {
-       struct wd_softc *wd = wd_cd.cd_devs[WDUNIT(bp->b_dev)];
+       struct wd_softc *wd = device_lookup(&wd_cd, WDUNIT(bp->b_dev));
        struct disklabel *lp = wd->sc_dk.dk_label;
        daddr_t blkno;
        int s;
@@ -795,7 +795,7 @@
        int flag, fmt;
        struct proc *p;
 {
-       struct wd_softc *wd = wd_cd.cd_devs[WDUNIT(dev)];
+       struct wd_softc *wd = device_lookup(&wd_cd, WDUNIT(dev));
        int part = WDPART(dev);
        int error;
        
@@ -921,7 +921,7 @@
        int flag;
        struct proc *p;
 {
-       struct wd_softc *wd = wd_cd.cd_devs[WDUNIT(dev)];
+       struct wd_softc *wd = device_lookup(&wd_cd, WDUNIT(dev));
        int error;
 
        WDCDEBUG_PRINT(("wdioctl\n"), DEBUG_FUNCS);



Home | Main Index | Thread Index | Old Index