Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 692086e0 authored by Kyle McMartin's avatar Kyle McMartin Committed by Kyle McMartin
Browse files

[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: default avatarKyle McMartin <kyle@parisc-linux.org>
parent 40d78de1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1903,7 +1903,7 @@ sba_common_init(struct sba_device *sba_dev)
	 * (bit #61, big endian), we have to flush and sync every time
	 * (bit #61, big endian), we have to flush and sync every time
	 * IO-PDIR is changed in Ike/Astro.
	 * 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");
		printk(KERN_INFO MODULE_NAME " FDC/SYNC required.\n");
	} else {
	} else {
		printk(KERN_INFO MODULE_NAME " IOC has cache coherent PDIR.\n");
		printk(KERN_INFO MODULE_NAME " IOC has cache coherent PDIR.\n");