[2.6 patch] drivers/pci/: small cleanups

From: Adrian Bunk
Date: Sat Nov 05 2005 - 19:45:23 EST


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@xxxxxxxxx>

---

drivers/pci/access.c | 2 ++
drivers/pci/hotplug/shpchp_pci.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)

--- linux-2.6.14-rc5-mm1-full/drivers/pci/access.c.old 2005-11-06 00:26:26.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/pci/access.c 2005-11-06 00:26:54.000000000 +0100
@@ -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.
--- linux-2.6.14-rc5-mm1-full/drivers/pci/hotplug/shpchp_pci.c.old 2005-11-06 00:28:10.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/pci/hotplug/shpchp_pci.c 2005-11-06 00:28:17.000000000 +0100
@@ -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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/