Does this help
--- drivers/scsi/aic7xxx/aic7xxx_linux.c~ Sat Aug 11 23:50:55 2001
+++ drivers/scsi/aic7xxx/aic7xxx_linux.c Mon Aug 27 20:34:30 2001
@@ -788,10 +788,11 @@
* address). For this reason, we have to reset
* our dma mask when doing allocations.
*/
+ if(ahc->dev_softc)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,3)
- pci_set_dma_mask(ahc->dev_softc, 0xFFFFFFFF);
+ pci_set_dma_mask(ahc->dev_softc, 0xFFFFFFFF);
#else
- ahc->dev_softc->dma_mask = 0xFFFFFFFF;
+ ahc->dev_softc->dma_mask = 0xFFFFFFFF;
#endif
*vaddr = pci_alloc_consistent(ahc->dev_softc,
dmat->maxsize, &map->bus_addr);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/