]> err.no Git - linux-2.6/blobdiff - drivers/ide/pci/via82cxxx.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6] / drivers / ide / pci / via82cxxx.c
index bbd17bec6ffe102ac8d0f5f523337d47029c918d..566e0ecb8db1251afe46065a7a371cdcea2f13b7 100644 (file)
@@ -340,7 +340,7 @@ static unsigned int __devinit init_chipset_via82cxxx(struct pci_dev *dev, const
         * Determine system bus clock.
         */
 
-       via_clock = system_bus_clock() * 1000;
+       via_clock = (ide_pci_clk ? ide_pci_clk : system_bus_clock()) * 1000;
 
        switch (via_clock) {
                case 33000: via_clock = 33333; break;