]> err.no Git - linux-2.6/commitdiff
wbsd: fix bad dma_addr_t conversion
authorPierre Ossman <drzeus@drzeus.cx>
Sat, 5 Jul 2008 22:51:07 +0000 (00:51 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 15 Jul 2008 12:14:49 +0000 (14:14 +0200)
DMA addresses are not pointers, so don't treat them as such. Avoids
compiler warnings when using 64-bit DMA addresses on a 32-bit system.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/wbsd.c

index c2b61606c430634c2564bba97a00de008d189361..f7dcd8ec0d7f9d08adaac521af11e3b015456373 100644 (file)
@@ -1420,7 +1420,7 @@ kfree:
 
        dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
                WBSD_DMA_SIZE, DMA_BIDIRECTIONAL);
-       host->dma_addr = (dma_addr_t)NULL;
+       host->dma_addr = 0;
 
        kfree(host->dma_buffer);
        host->dma_buffer = NULL;
@@ -1445,7 +1445,7 @@ static void wbsd_release_dma(struct wbsd_host *host)
 
        host->dma = -1;
        host->dma_buffer = NULL;
-       host->dma_addr = (dma_addr_t)NULL;
+       host->dma_addr = 0;
 }
 
 /*