From 6f6c345298f55e4e754478aa4823338b215ecea8 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sat, 18 Feb 2006 16:45:35 +0000 Subject: [PATCH] Fix a typo. Pointed out by yamt. --- sys/arch/algor/algor/autoconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/algor/algor/autoconf.c b/sys/arch/algor/algor/autoconf.c index e522c75e0913..43951fa159ab 100644 --- a/sys/arch/algor/algor/autoconf.c +++ b/sys/arch/algor/algor/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.8 2006/02/18 05:04:11 thorpej Exp $ */ +/* $NetBSD: autoconf.c,v 1.9 2006/02/18 16:45:35 thorpej Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2006/02/18 05:04:11 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2006/02/18 16:45:35 thorpej Exp $"); #include "opt_algor_p4032.h" #include "opt_algor_p5064.h" @@ -102,7 +102,7 @@ device_register(struct device *dev, void *aux) * Fetch the MAC address for the built-in Ethernet (we grab it * from PMON earlier in the boot process). */ - if (dev->dev_parent != NULL && + if (dev->dv_parent != NULL && strcmp(dev->dv_parent->dv_cfdata->cf_name, "pci") == 0) { struct pci_attach_args *pa = aux;