diff options
| author | thorpej <thorpej@NetBSD.org> | 2006-03-28 17:38:24 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2006-03-28 17:38:24 +0000 |
| commit | 39cd836ee121586d7aeef7facf29276e7a66a7fb (patch) | |
| tree | d6ca200abe74ecb5d379f372d93e5201b2677f51 /sys/dev/md.c | |
| parent | d717ea85c2362092cc30ae655b160d0c9cf47294 (diff) | |
Use device_unit().
Diffstat (limited to 'sys/dev/md.c')
| -rw-r--r-- | sys/dev/md.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/md.c b/sys/dev/md.c index b526221ef64..df872afd733 100644 --- a/sys/dev/md.c +++ b/sys/dev/md.c @@ -1,4 +1,4 @@ -/* $NetBSD: md.c,v 1.43 2005/12/11 12:20:53 christos Exp $ */ +/* $NetBSD: md.c,v 1.44 2006/03/28 17:38:29 thorpej Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross, Leo Weppelman. @@ -46,7 +46,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.43 2005/12/11 12:20:53 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.44 2006/03/28 17:38:29 thorpej Exp $"); #include "opt_md.h" @@ -172,7 +172,7 @@ md_attach(struct device *parent, struct device *self, void *aux) * All it would need to do is setup the md_conf struct. * See sys/dev/md_root.c for an example. */ - md_attach_hook(sc->sc_dev.dv_unit, &sc->sc_md); + md_attach_hook(device_unit(&sc->sc_dev), &sc->sc_md); #endif /* |
