summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-06-26 13:29:28 -0700
committerIan Romanick <idr@us.ibm.com>2007-06-26 13:29:28 -0700
commit3547fbda63925217a5be24de5d5abec3b53d3fe1 (patch)
treeaefd4583cf93f1e9a4b76283ec58e2a37e50b4d8
parent3a776fa01e61c1dc40a0a1803a80c98bf7e77164 (diff)
Revert over-zealous change from previous commit.
-rw-r--r--linux-core/xgi_linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/xgi_linux.h b/linux-core/xgi_linux.h
index 8cf304c7..465feb3c 100644
--- a/linux-core/xgi_linux.h
+++ b/linux-core/xgi_linux.h
@@ -195,9 +195,12 @@ EXPORT_NO_SYMBOLS;
#define XGI_PCI_BUS_NUMBER(dev) (dev)->bus->number
#define XGI_PCI_SLOT_NUMBER(dev) PCI_SLOT((dev)->devfn)
+#define XGI_PCI_GET_CLASS_PRESENT
#ifdef XGI_PCI_GET_CLASS_PRESENT
+#define XGI_PCI_DEV_PUT(dev) pci_dev_put(dev)
#define XGI_PCI_GET_DEVICE(vendor,device,from) pci_get_device(vendor,device,from)
#else
+#define XGI_PCI_DEV_PUT(dev)
#define XGI_PCI_GET_DEVICE(vendor,device,from) pci_find_device(vendor,device,from)
#endif