Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Back out part of my device property change: the ...
details: https://anonhg.NetBSD.org/src/rev/93ad59d21ece
branches: trunk
changeset: 751120:93ad59d21ece
user: martin <martin%NetBSD.org@localhost>
date: Mon Jan 25 10:25:30 2010 +0000
description:
Back out part of my device property change: the mac-address part was already
done better in another place which I overlooked when merging local
changes.
diffstat:
sys/dev/pci/if_bge.c | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
diffs (53 lines):
diff -r 0b6a517e3cd1 -r 93ad59d21ece sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Mon Jan 25 10:12:41 2010 +0000
+++ b/sys/dev/pci/if_bge.c Mon Jan 25 10:25:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.175 2010/01/24 23:27:39 martin Exp $ */
+/* $NetBSD: if_bge.c,v 1.176 2010/01/25 10:25:30 martin Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.175 2010/01/24 23:27:39 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.176 2010/01/25 10:25:30 martin Exp $");
#include "vlan.h"
#include "rnd.h"
@@ -2365,7 +2365,6 @@
bus_addr_t memaddr;
bus_size_t memsize;
uint32_t pm_ctl;
- prop_data_t eaddrprop;
bool no_seeprom;
bp = bge_lookup(pa);
@@ -2636,17 +2635,8 @@
}
/*
- * Get station address from the EEPROM (or use firmware values
- * if provided via device properties)
+ * Get station address from the EEPROM
*/
- eaddrprop = prop_dictionary_get(device_properties(self), "mac-address");
-
- if (eaddrprop != NULL && prop_data_size(eaddrprop) == ETHER_ADDR_LEN) {
- memcpy(eaddr, prop_data_data_nocopy(eaddrprop),
- ETHER_ADDR_LEN);
- goto got_eaddr;
- }
-
if (bge_get_eaddr(sc, eaddr)) {
aprint_error_dev(sc->bge_dev,
"failed to read station address\n");
@@ -2654,7 +2644,6 @@
return;
}
-got_eaddr:
br = bge_lookup_rev(sc->bge_chipid);
if (br == NULL) {
Home |
Main Index |
Thread Index |
Old Index