Skip to content

Commit 6fced3c

Browse files
committed
Remove a now-unnecessary dance with "local-mac-address".
1 parent cfc5e40 commit 6fced3c

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

sys/arch/arm/xilinx/zynq_cemac.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: zynq_cemac.c,v 1.11 2025/10/03 14:05:11 thorpej Exp $ */
1+
/* $NetBSD: zynq_cemac.c,v 1.12 2025/10/15 01:21:39 thorpej Exp $ */
22
/*-
33
* Copyright (c) 2015 Genetec Corporation. All rights reserved.
44
* Written by Hashimoto Kenichi for Genetec Corporation.
@@ -26,7 +26,7 @@
2626
*/
2727

2828
#include <sys/cdefs.h>
29-
__KERNEL_RCSID(0, "$NetBSD: zynq_cemac.c,v 1.11 2025/10/03 14:05:11 thorpej Exp $");
29+
__KERNEL_RCSID(0, "$NetBSD: zynq_cemac.c,v 1.12 2025/10/15 01:21:39 thorpej Exp $");
3030

3131
#include <sys/param.h>
3232

@@ -85,10 +85,9 @@ cemac_attach(device_t parent, device_t self, void *aux)
8585
struct cemac_softc *sc = device_private(self);
8686
const int phandle = faa->faa_phandle;
8787
char intrstr[128];
88-
const char *macaddr;
8988
bus_addr_t addr;
9089
bus_size_t size;
91-
int error, len;
90+
int error;
9291

9392
if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
9493
aprint_error(": couldn't get registers\n");
@@ -114,11 +113,6 @@ cemac_attach(device_t parent, device_t self, void *aux)
114113
return;
115114
}
116115

117-
macaddr = fdtbus_get_prop(phandle, "local-mac-address", &len);
118-
if (macaddr != NULL && len == ETHER_ADDR_LEN) {
119-
device_setprop_data(self, "mac-address", macaddr, len);
120-
}
121-
122116
sc->sc_dev = self;
123117
sc->sc_iot = faa->faa_bst;
124118
sc->sc_dmat = faa->faa_dmat;

0 commit comments

Comments
 (0)