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/ofw | |
| parent | d717ea85c2362092cc30ae655b160d0c9cf47294 (diff) | |
Use device_unit().
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofnet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofnet.c b/sys/dev/ofw/ofnet.c index b5c759f1c3c..2f0767b67a0 100644 --- a/sys/dev/ofw/ofnet.c +++ b/sys/dev/ofw/ofnet.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofnet.c,v 1.34 2005/12/11 12:22:48 christos Exp $ */ +/* $NetBSD: ofnet.c,v 1.35 2006/03/28 17:38:34 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.34 2005/12/11 12:22:48 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.35 2006/03/28 17:38:34 thorpej Exp $"); #include "ofnet.h" #include "opt_inet.h" @@ -136,7 +136,7 @@ ofnet_attach(struct device *parent, struct device *self, void *aux) of->sc_phandle = oba->oba_phandle; #if NIPKDB_OFN > 0 if (kifp && - kifp->unit - 1 == of->sc_dev.dv_unit && + kifp->unit - 1 == device_unit(&of->sc_dev) && OF_instance_to_package(kifp->port) == oba->oba_phandle) { ipkdb_of = of; of->sc_ihandle = kifp->port; |
