]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/frv/mb93090-mb00/pci-frv.c
Merge tag 'sh-for-linus' of git://github.com/pmundt/linux-sh
[karo-tx-linux.git] / arch / frv / mb93090-mb00 / pci-frv.c
index 6b4fb28e9f997d1a9bf64f19cd26fba08ac8b9df..c281217654487cb059e1e790c951c3a7dabdef22 100644 (file)
@@ -194,23 +194,3 @@ void __init pcibios_resource_survey(void)
        pcibios_allocate_resources(1);
        pcibios_assign_resources();
 }
-
-/*
- *  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;
-
-void pcibios_set_master(struct pci_dev *dev)
-{
-       u8 lat;
-       pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat);
-       if (lat < 16)
-               lat = (64 <= pcibios_max_latency) ? 64 : pcibios_max_latency;
-       else if (lat > pcibios_max_latency)
-               lat = pcibios_max_latency;
-       else
-               return;
-       printk(KERN_DEBUG "PCI: Setting latency timer of device %s to %d\n", pci_name(dev), lat);
-       pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
-}