From: Kyle McMartin Date: Tue, 30 May 2006 17:50:29 +0000 (+0000) Subject: [PARISC] Test ioc_needs_fdc variable instead of open coding X-Git-Tag: MMI-PSA29.97-13-9~48729^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=692086e0b3ca9a6cb876b901bfa87717044cb20f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PARISC] Test ioc_needs_fdc variable instead of open coding Some debugging code in sba_iommu.c should be testing ioc_needs_fdc, not directly testing boot_cpu_data. Signed-off-by: Kyle McMartin --- diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index 49b617551195..d09e39e39c60 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c @@ -1903,7 +1903,7 @@ sba_common_init(struct sba_device *sba_dev) * (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");