Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] PCI: Make the pcibios_max_latency variable static

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>

authored by

Dmitri Vorobiev and committed by
Ralf Baechle
3450004a 5b664cb2

+1 -2
+1 -1
arch/mips/pci/pci.c
··· 204 204 * If we set up a device for bus mastering, we need to check the latency 205 205 * timer as certain crappy BIOSes forget to set it properly. 206 206 */ 207 - unsigned int pcibios_max_latency = 255; 207 + static unsigned int pcibios_max_latency = 255; 208 208 209 209 void pcibios_set_master(struct pci_dev *dev) 210 210 {
-1
include/asm-mips/pci.h
··· 173 173 } 174 174 175 175 extern int pci_probe_only; 176 - extern unsigned int pcibios_max_latency; 177 176 178 177 #endif /* _ASM_PCI_H */