Source
288
288
dma_addr_t pScript, pSlots;
289
289
__u8 *memory;
290
290
__u32 *script;
291
291
struct Scsi_Host *host;
292
292
static int banner = 0;
293
293
int j;
294
294
295
295
if(tpnt->sdev_attrs == NULL)
296
296
tpnt->sdev_attrs = NCR_700_dev_attrs;
297
297
298
-
memory = dma_alloc_attrs(hostdata->dev, TOTAL_MEM_SIZE, &pScript,
298
+
memory = dma_alloc_attrs(dev, TOTAL_MEM_SIZE, &pScript,
299
299
GFP_KERNEL, DMA_ATTR_NON_CONSISTENT);
300
300
if(memory == NULL) {
301
301
printk(KERN_ERR "53c700: Failed to allocate memory for driver, detaching\n");
302
302
return NULL;
303
303
}
304
304
305
305
script = (__u32 *)memory;
306
306
hostdata->msgin = memory + MSGIN_OFFSET;
307
307
hostdata->msgout = memory + MSGOUT_OFFSET;
308
308
hostdata->status = memory + STATUS_OFFSET;