Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wbsd: fix bad dma_addr_t conversion

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>

+2 -2
+2 -2
drivers/mmc/host/wbsd.c
··· 1420 1420 1421 1421 dma_unmap_single(mmc_dev(host->mmc), host->dma_addr, 1422 1422 WBSD_DMA_SIZE, DMA_BIDIRECTIONAL); 1423 - host->dma_addr = (dma_addr_t)NULL; 1423 + host->dma_addr = 0; 1424 1424 1425 1425 kfree(host->dma_buffer); 1426 1426 host->dma_buffer = NULL; ··· 1445 1445 1446 1446 host->dma = -1; 1447 1447 host->dma_buffer = NULL; 1448 - host->dma_addr = (dma_addr_t)NULL; 1448 + host->dma_addr = 0; 1449 1449 } 1450 1450 1451 1451 /*