From e4c4e244c567fd70e1ccf6abab7d74578af50639 Mon Sep 17 00:00:00 2001
From: Matthew Wilcox <willy@debian.org>
Date: Tue, 23 Mar 2004 02:05:17 -0800
Subject: [PATCH] [PATCH] ia64: Fix SAL 3.2 detection

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index f673c1b182e4..391d2b476c47 100644
--- a/arch/ia64/pci/pci.c
+++ b/arch/ia64/pci/pci.c
@@ -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;
-- 
2.30.9