Skip to contentSkip to conversation

drivers/pci/: small cleanups

PATCH New Adrian Bunk 1 participant 1 message Nov 6, 2005 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/pci/: small cleanups

This patch contains the following cleanups:
- access.c should #include "pci.h" for getting the prototypes of it's global functions
- hotplug/shpchp_pci.c: make the needlessly global function program_fw_provided_values() static

---

 drivers/pci/access.c             |    2 ++
 drivers/pci/hotplug/shpchp_pci.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/pci/access.c renamed from drivers/pci/access.c.old +2 -0
@@ -2,6 +2,8 @@
 #include <linux/module.h>
 #include <linux/ioport.h>
 
+#include "pci.h"
+
 /*
  * This interrupt-safe spinlock protects all accesses to PCI
  * configuration space.
drivers/pci/hotplug/shpchp_pci.c renamed from drivers/pci/hotplug/shpchp_pci.c.old +1 -1
@@ -34,7 +34,7 @@
 #include "../pci.h"
 #include "shpchp.h"
 
-void program_fw_provided_values(struct pci_dev *dev)
+static void program_fw_provided_values(struct pci_dev *dev)
 {
 	u16 pci_cmd, pci_bctl;
 	struct pci_dev *cdev;