]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] PCI: Make the pcibios_max_latency variable static
authorDmitri Vorobiev <dmitri.vorobiev@movial.fi>
Tue, 15 Jul 2008 16:57:30 +0000 (19:57 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 20 Jul 2008 13:38:17 +0000 (14:38 +0100)
The pcibios_max_latency variable is needlessly defined global, and this
patch makes it static.

Build-tested using malta_defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci.c
include/asm-mips/pci.h

index d7d6cb063d26bb93c045782ee970e8838763d592..77bd5b68dc430beab3dde6dbefde63b1eca557ca 100644 (file)
@@ -204,7 +204,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask)
  *  If we set up a device for bus mastering, we need to check the latency
  *  timer as certain crappy BIOSes forget to set it properly.
  */
-unsigned int pcibios_max_latency = 255;
+static unsigned int pcibios_max_latency = 255;
 
 void pcibios_set_master(struct pci_dev *dev)
 {
index d3be83436070cafbf824222054d9f717a3eaf414..c205875d7f31001efd3fe0bbd553322d2097a259 100644 (file)
@@ -173,6 +173,5 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
 }
 
 extern int pci_probe_only;
-extern unsigned int pcibios_max_latency;
 
 #endif /* _ASM_PCI_H */