summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@mandrakesoft.com>2002-03-12 13:03:56 -0500
committerJeff Garzik <jgarzik@mandrakesoft.com>2002-03-12 13:03:56 -0500
commit73e567edc0e62817ce60b84a561caa29dd40e1ac (patch)
tree83ddaa09a6f087411ced4f7f98f1798ade7b9d93
parentd9f2d50eabbb92ceef65221933651fcfb728c800 (diff)
Make pdev_set_mwi static, at the request of David Miller.
-rw-r--r--drivers/pci/pci.c7
-rw-r--r--include/linux/pci.h1
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 00e482fe285e..ad948cb487ee 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -850,16 +850,16 @@ pci_set_master(struct pci_dev *dev)
}
/**
- * pdev_set_mwi - arch helper function for pcibios_set_mwi
+ * pdev_set_mwi - helper function for pci_set_mwi
* @dev: the PCI device for which MWI is enabled
*
- * Helper function for implementation the arch-specific pcibios_set_mwi
+ * Helper function for generic implementation of pci_set_mwi
* function. Originally copied from drivers/net/acenic.c.
* Copyright 1998-2001 by Jes Sorensen, <jes@trained-monkey.org>.
*
* RETURNS: An appriopriate -ERRNO error value on eror, or zero for success.
*/
-int
+static int
pdev_set_mwi(struct pci_dev *dev)
{
int rc = 0;
@@ -2099,7 +2099,6 @@ EXPORT_SYMBOL(pci_find_subsys);
EXPORT_SYMBOL(pci_set_master);
EXPORT_SYMBOL(pci_set_mwi);
EXPORT_SYMBOL(pci_clear_mwi);
-EXPORT_SYMBOL(pdev_set_mwi);
EXPORT_SYMBOL(pci_set_dma_mask);
EXPORT_SYMBOL(pci_dac_set_dma_mask);
EXPORT_SYMBOL(pci_assign_resource);
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 074049025ea9..6376381a6533 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -567,7 +567,6 @@ void pci_set_master(struct pci_dev *dev);
#define HAVE_PCI_SET_MWI
int pci_set_mwi(struct pci_dev *dev);
void pci_clear_mwi(struct pci_dev *dev);
-int pdev_set_mwi(struct pci_dev *dev);
int pci_set_dma_mask(struct pci_dev *dev, u64 mask);
int pci_dac_set_dma_mask(struct pci_dev *dev, u64 mask);
int pci_assign_resource(struct pci_dev *dev, int i);