[2.6 patch] drivers/pci/: small cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux