Skip to content

Commit

Permalink
[MIPS] PCI: Make the pcibios_max_latency variable static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitri Vorobiev authored and Ralf Baechle committed Jul 20, 2008
1 parent 5b664cb commit 3450004
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion arch/mips/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion include/asm-mips/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 3450004

Please sign in to comment.