[PATCH] PCI: drivers/pci/: small cleanups
authorAdrian Bunk <bunk@stusta.de>
Sun, 6 Nov 2005 00:45:08 +0000 (01:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2005 00:09:18 +0000 (16:09 -0800)
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

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/access.c
drivers/pci/hotplug/shpchp_pci.c

index 2a42add7f56356d87f0ca4d74f1f8521975603b4..ea16805a153cdbfeb72b150d0d900df388edacff 100644 (file)
@@ -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.
index b8e95acea3b6abfe36527f4aca6ba2c9d0611ca1..38009bc0fd5de7e21668763a958e7554347ac1f8 100644 (file)
@@ -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;