[parisc-linux] [PATCH 06/23] [PARISC] Test ioc_needs_fdc variable instead of open coding

Kyle McMartin kyle at parisc-linux.org
Sun Jun 25 17:34:34 MDT 2006


Some debugging code in sba_iommu.c should be testing ioc_needs_fdc,
not directly testing boot_cpu_data.

Signed-off-by: Kyle McMartin <kyle at parisc-linux.org>

---

 drivers/parisc/sba_iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

bfbd4e827dda2ced4d15cd2ba31fcf193fa1b67f
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c
index 21dc312..665f898 100644
--- a/drivers/parisc/sba_iommu.c
+++ b/drivers/parisc/sba_iommu.c
@@ -1900,7 +1900,7 @@ #ifdef DEBUG_SBA_INIT
 	 * (bit #61, big endian), we have to flush and sync every time
 	 * IO-PDIR is changed in Ike/Astro.
 	 */
-	if (boot_cpu_data.pdc.capabilities & PDC_MODEL_IOPDIR_FDC) {
+	if (ioc_needs_fdc) {
 		printk(KERN_INFO MODULE_NAME " FDC/SYNC required.\n");
 	} else {
 		printk(KERN_INFO MODULE_NAME " IOC has cache coherent PDIR.\n");
-- 
1.3.3




More information about the parisc-linux mailing list