]> git.neil.brown.name Git - history.git/commitdiff
update drivers using dma_alloc_[non]coherent for GFP_ flags
authorJames Bottomley <jejb@raven.il.steeleye.com>
Mon, 13 Jan 2003 04:33:21 +0000 (22:33 -0600)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Mon, 13 Jan 2003 04:33:21 +0000 (22:33 -0600)
drivers/scsi/53c700.c
drivers/scsi/sym53c8xx_comm.h

index 8cb78e902d2339791ad99aad8b1c45ffc26ea82f..ffe1f6704a9b3893db969ff91b27f69d217e0b83 100644 (file)
@@ -246,7 +246,7 @@ NCR_700_detect(Scsi_Host_Template *tpnt,
        int j;
 
        memory = dma_alloc_noncoherent(hostdata->dev, TOTAL_MEM_SIZE,
-                                        &pScript);
+                                      &pScript, GFP_KERNEL);
        if(memory == NULL) {
                printk(KERN_ERR "53c700: Failed to allocate memory for driver, detatching\n");
                return NULL;
index e0a86d99a5026035f14e31048d96db0ec93d7949..371f0dcf62e1ac77223b80776e01fcb18e113572 100644 (file)
@@ -797,7 +797,7 @@ static m_addr_t ___dma_getp(m_pool_s *mp)
                dma_addr_t daddr;
                vp = (m_addr_t) dma_alloc_coherent(mp->bush,
                                                PAGE_SIZE<<MEMO_PAGE_ORDER,
-                                               &daddr);
+                                               &daddr, GFP_KERNEL);
                if (vp) {
                        int hc = VTOB_HASH_CODE(vp);
                        vbp->vaddr = vp;