mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
7d2be0749a
commit
97067d5581
1 changed files with 2 additions and 2 deletions
|
@ -1420,7 +1420,7 @@ kfree:
|
||||||
|
|
||||||
dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
|
dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
|
||||||
WBSD_DMA_SIZE, DMA_BIDIRECTIONAL);
|
WBSD_DMA_SIZE, DMA_BIDIRECTIONAL);
|
||||||
host->dma_addr = (dma_addr_t)NULL;
|
host->dma_addr = 0;
|
||||||
|
|
||||||
kfree(host->dma_buffer);
|
kfree(host->dma_buffer);
|
||||||
host->dma_buffer = NULL;
|
host->dma_buffer = NULL;
|
||||||
|
@ -1445,7 +1445,7 @@ static void wbsd_release_dma(struct wbsd_host *host)
|
||||||
|
|
||||||
host->dma = -1;
|
host->dma = -1;
|
||||||
host->dma_buffer = NULL;
|
host->dma_buffer = NULL;
|
||||||
host->dma_addr = (dma_addr_t)NULL;
|
host->dma_addr = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue