]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: Fix SAL 3.2 detection
authorMatthew Wilcox <willy@debian.org>
Tue, 23 Mar 2004 10:05:17 +0000 (02:05 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Tue, 23 Mar 2004 10:05:17 +0000 (02:05 -0800)
This important fix checks the SAl *revision* rather than
the *version*.  I carefully documented which was which, then used the
wrong one.

arch/ia64/pci/pci.c

index f673c1b182e49ee4ec2ad9de15b43dba06665e0f..391d2b476c476365c58522b5db6375783a953232 100644 (file)
@@ -128,7 +128,8 @@ struct pci_raw_ops *raw_pci_ops = &pci_sal_ops;     /* default to SAL < 3.2 */
 static int __init
 pci_set_sal_ops (void)
 {
-       if (sal_version >= SAL_VERSION_CODE(3, 2)) {
+       if (sal_revision >= SAL_VERSION_CODE(3, 2)) {
+               printk("Using SAL 3.2 to access PCI config space\n");
                raw_pci_ops = &pci_sal_ext_ops;
        }
        return 0;