summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-03-05 23:27:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-03-05 23:27:38 +0000
commit26a05c808498ad25616d9dea17501303c007e490 (patch)
tree0f176b8cbcead545015305c875c9e0caca1cde0d /sys
parent9507c936eac89a2901bca3ab6de4d5f2c0adc5b5 (diff)
Make this compile on sparc64 too.
Diffstat (limited to 'sys')
-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;