diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-04-13 20:02:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-04-13 20:02:59 +0000 |
commit | 3940eb858be9f982ea67836918837eacf8854856 (patch) | |
tree | 5d67ee5acc70da88c780fcbdcecc432450541600 /sys/dev/pci/if_nep.c | |
parent | 4fbbb9fffd55af323fb2367bfd82e3c333be930b (diff) |
Make sure we print the MAC address on sparc64 as well.
Diffstat (limited to 'sys/dev/pci/if_nep.c')
-rw-r--r-- | sys/dev/pci/if_nep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nep.c b/sys/dev/pci/if_nep.c index 70700d13b8e..63166932c53 100644 --- a/sys/dev/pci/if_nep.c +++ b/sys/dev/pci/if_nep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nep.c,v 1.17 2015/03/24 09:59:23 mpi Exp $ */ +/* $OpenBSD: if_nep.c,v 1.18 2015/04/13 20:02:58 kettenis Exp $ */ /* * Copyright (c) 2014, 2015 Mark Kettenis * @@ -588,9 +588,8 @@ nep_attach(struct device *parent, struct device *self, void *aux) #ifdef __sparc64__ if (OF_getprop(PCITAG_NODE(pa->pa_tag), "local-mac-address", sc->sc_lladdr, ETHER_ADDR_LEN) <= 0) -#else - nep_pci_enaddr(sc, pa); #endif + nep_pci_enaddr(sc, pa); printf(", address %s\n", ether_sprintf(sc->sc_lladdr)); |