Skip to contentSkip to conversation

2.6.14: small patch to sdladrv.c

PATCH Toni Mueller 1 participant 1 message Nov 13, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

while trying to build the modules for 2.6.14, I stumbled across a glitch in drivers/net/wan/sdladrv.c. The following patch fixes compile for me, although I don't actually have that card and thus cannot test it.

sdladrv.c +1 -1
@@ -1998,7 +1998,7 @@
 		modname, hw->irq);
 
 	/* map the physical PCI memory to virtual memory */
-	(void *)hw->dpmbase = ioremap((unsigned long)S514_mem_base_addr,
+	hw->dpmbase = (void *)ioremap((unsigned long)S514_mem_base_addr,
 		(unsigned long)MAX_SIZEOF_S514_MEMORY);
     	/* map the physical control register memory to virtual memory */
 	hw->vector = (unsigned long)ioremap(

Enjoy,
--Toni++