Module Name: src
Committed By: matt
Date: Sun Jun 20 00:25:41 UTC 2010
Modified Files:
src/sys/arch/ofppc/pci: gt_mainbus.c
Log Message:
My pegasos2 doesn't have an ethernet node at the top level.
Deal with it.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ofppc/pci/gt_mainbus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/ofppc/pci/gt_mainbus.c
diff -u src/sys/arch/ofppc/pci/gt_mainbus.c:1.1 src/sys/arch/ofppc/pci/gt_mainbus.c:1.2
--- src/sys/arch/ofppc/pci/gt_mainbus.c:1.1 Wed Jun 9 04:41:42 2010
+++ src/sys/arch/ofppc/pci/gt_mainbus.c Sun Jun 20 00:25:41 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: gt_mainbus.c,v 1.1 2010/06/09 04:41:42 kiyohara Exp $ */
+/* $NetBSD: gt_mainbus.c,v 1.2 2010/06/20 00:25:41 matt Exp $ */
/*
* Copyright (c) 2010 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gt_mainbus.c,v 1.1 2010/06/09 04:41:42 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gt_mainbus.c,v 1.2 2010/06/20 00:25:41 matt Exp $");
#include "opt_pci.h"
#include "opt_marvell.h"
@@ -142,7 +142,7 @@
ethernet++;
}
- if (pci == 2 && ethernet == 1)
+ if (pci == 2 && (ethernet == 1 || ethernet == 0))
return 1;
return 0;
}