diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2022-11-02 13:54:29 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2022-12-07 13:22:36 +0100 |
commit | 8840e1c13cb40d2a207f875f3c730f399a21d4d4 (patch) | |
tree | b64e3f8f6f23c1944a52cdec3425b5514b0561b9 /drivers/mmc/host/tmio_mmc.h | |
parent | c330601c9c93392000c077d973b182cc0164b9ac (diff) | |
download | linux-8840e1c13cb40d2a207f875f3c730f399a21d4d4.tar.gz linux-8840e1c13cb40d2a207f875f3c730f399a21d4d4.tar.bz2 linux-8840e1c13cb40d2a207f875f3c730f399a21d4d4.zip |
mmc: tmio: remove tmio_mmc_k(un)map_atomic helpers
After a8402aed8ca5 ("mmc: tmio_mmc_core: Remove
local_irq_{save,restore}() around k[un]map_atomic()") and ac91578a6812
("mmc: tmio_mmc_core: Replace kmap_atomic() with kmap_local_page()"),
the helpers contain just a single call. Putting it directly in the code
makes it actually more readable. More so, because we now avoid the
'offset' calculation when mapping/unmapping and just use it when we need
it in the copy routines.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20221102125430.28466-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.h')
-rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index f3afbed7d340..de56e6534aea 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -205,17 +205,6 @@ void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i); void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i); irqreturn_t tmio_mmc_irq(int irq, void *devid); -static inline char *tmio_mmc_kmap_atomic(struct scatterlist *sg) -{ - return kmap_local_page(sg_page(sg)) + sg->offset; -} - -static inline void tmio_mmc_kunmap_atomic(struct scatterlist *sg, - void *virt) -{ - kunmap_local(virt - sg->offset); -} - #ifdef CONFIG_PM int tmio_mmc_host_runtime_suspend(struct device *dev); int tmio_mmc_host_runtime_resume(struct device *dev); |