summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2014-03-05 23:27:37 +0000
committerkettenis <kettenis@openbsd.org>2014-03-05 23:27:37 +0000
commit9ac1013ff88e798ed3a2c633dfdf226cfd5958df (patch)
tree44d12dfdf6e6448540583f92fac521c5ebfca9c6
parentIn -Tutf8 mode, mandoc_char(7) named accent character escape sequences (diff)
downloadwireguard-openbsd-9ac1013ff88e798ed3a2c633dfdf226cfd5958df.tar.xz
wireguard-openbsd-9ac1013ff88e798ed3a2c633dfdf226cfd5958df.zip
Make this compile on sparc64 too.
-rw-r--r--sys/dev/pci/qlw_pci.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/pci/qlw_pci.c b/sys/dev/pci/qlw_pci.c
index 19cd5f566fa..2525a823107 100644
--- a/sys/dev/pci/qlw_pci.c
+++ b/sys/dev/pci/qlw_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw_pci.c,v 1.1 2014/03/05 23:10:42 kettenis Exp $ */
+/* $OpenBSD: qlw_pci.c,v 1.2 2014/03/05 23:27:37 kettenis Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -95,10 +95,6 @@ qlw_pci_attach(struct device *parent, struct device *self, void *aux)
struct pci_attach_args *pa = aux;
pci_intr_handle_t ih;
u_int32_t pcictl;
-#ifdef __sparc64__
- u_int64_t wwn;
- int node;
-#endif
pcireg_t bars[] = { QLW_PCI_MEM_BAR, QLW_PCI_IO_BAR };
pcireg_t memtype;
@@ -217,14 +213,6 @@ qlw_pci_attach(struct device *parent, struct device *self, void *aux)
}
#endif
-#ifdef __sparc64__
- node = PCITAG_NODE(pa->pa_tag);
- if (OF_getprop(node, "port-wwn", &wwn, sizeof(wwn)) == sizeof(wwn))
- sc->sc_port_name = wwn;
- if (OF_getprop(node, "node-wwn", &wwn, sizeof(wwn)) == sizeof(wwn))
- sc->sc_node_name = wwn;
-#endif
-
if (qlw_attach(sc) != 0) {
/* error printed by qlw_attach */
goto deintr;