From d7eb80c17be6277754b468771826efd8a2f1124a Mon Sep 17 00:00:00 2001 From: dyoung Date: Tue, 12 Feb 2008 18:03:43 +0000 Subject: [PATCH] Use device_is_active(). --- sys/arch/evbppc/virtex/dev/if_temac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/evbppc/virtex/dev/if_temac.c b/sys/arch/evbppc/virtex/dev/if_temac.c index 602c441553bc..4b36ffe6d67c 100644 --- a/sys/arch/evbppc/virtex/dev/if_temac.c +++ b/sys/arch/evbppc/virtex/dev/if_temac.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_temac.c,v 1.3 2008/01/19 22:10:14 dyoung Exp $ */ +/* $NetBSD: if_temac.c,v 1.4 2008/02/12 18:03:43 dyoung Exp $ */ /* * Copyright (c) 2006 Jachym Holecek @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.3 2008/01/19 22:10:14 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.4 2008/02/12 18:03:43 dyoung Exp $"); #include "bpfilter.h" @@ -895,8 +895,8 @@ temac_mii_tick(void *arg) struct temac_softc *sc = (struct temac_softc *)arg; int s; - if ((sc->sc_dev.dv_flags & DVF_ACTIVE) == 0) - return ; + if (!device_is_active(&sc->sc_dev)) + return; s = splnet(); mii_tick(&sc->sc_mii);