patch-2.3.35 linux/drivers/scsi/sym53c8xx.c

Next file: linux/drivers/sound/Config.in
Previous file: linux/drivers/scsi/st.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.34/linux/drivers/scsi/sym53c8xx.c linux/drivers/scsi/sym53c8xx.c
@@ -679,10 +679,8 @@
 #endif
 
 #ifdef __sparc__
-#include <asm/irq.h>
-#  define ioremap(base, size)	((u_long) __va(base))
-#  define iounmap(vaddr)
-#  define pcivtobus(p)			((p) & pci_dvma_mask)
+#  include <asm/irq.h>
+#  define pcivtobus(p)			bus_dvma_to_mem(p)
 #  define memcpy_to_pci(a, b, c)	memcpy_toio((a), (b), (c))
 #elif defined(__alpha__)
 #  define pcivtobus(p)			((p) & 0xfffffffful)
@@ -11882,11 +11880,10 @@
 	/*
 	**    Fix-ups for sparc.
 	*/
-	base = __pa(base);
-	base_2 = __pa(base_2);
-
 	if (!cache_line_size)
 		suggested_cache_line_size = 16;
+
+	driver_setup.pci_fix_up |= 0x7;
 #endif	/* __sparc__ */
 
 #if defined(__i386__) && !defined(MODULE)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)