mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mmc: at91_mci: correct kunmap_atomic()
kunmap_atomic() accepts a pointer to any location in the page so we do not need the subtraction and cast. Signed-off-by: Nicolas Ferre <[email protected]> Cc: Wolfgang Muees <[email protected]> Cc: Andrew Victor <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5b27a1a566
commit
752993ef8e
1 changed files with 2 additions and 2 deletions
|
|
@ -248,7 +248,7 @@ static inline void at91_mci_sg_to_dma(struct at91mci_host *host, struct mmc_data
|
|||
dmabuf = (unsigned *)tmpv;
|
||||
}
|
||||
|
||||
kunmap_atomic(((void *)sgbuffer) - sg->offset, KM_BIO_SRC_IRQ);
|
||||
kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ);
|
||||
|
||||
if (size == 0)
|
||||
break;
|
||||
|
|
@ -313,7 +313,7 @@ static void at91_mci_post_dma_read(struct at91mci_host *host)
|
|||
dmabuf = (unsigned *)tmpv;
|
||||
}
|
||||
|
||||
kunmap_atomic(((void *)sgbuffer)-sg->offset, KM_BIO_SRC_IRQ);
|
||||
kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ);
|
||||
dmac_flush_range((void *)sgbuffer, ((void *)sgbuffer) + amount);
|
||||
data->bytes_xfered += amount;
|
||||
if (size == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue