Commit e4c4e244 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by David Mosberger

[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.
parent 823e911b
...@@ -128,7 +128,8 @@ struct pci_raw_ops *raw_pci_ops = &pci_sal_ops; /* default to SAL < 3.2 */ ...@@ -128,7 +128,8 @@ struct pci_raw_ops *raw_pci_ops = &pci_sal_ops; /* default to SAL < 3.2 */
static int __init static int __init
pci_set_sal_ops (void) 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; raw_pci_ops = &pci_sal_ext_ops;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment