summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2016-05-27 14:10:29 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2016-07-25 10:34:07 +0200
commit7c42dbf335bc9f63a69a46489f02496029739622 (patch)
treeaf82a8128ff0ac3d5af0143a19dcd33cb43db8cd /drivers/mmc/host/tmio_mmc.h
parentmmc: sdhci-of-arasan: implement enhanced strobe callback (diff)
downloadlinux-7c42dbf335bc9f63a69a46489f02496029739622.tar.xz
linux-7c42dbf335bc9f63a69a46489f02496029739622.zip
mmc: tmio: make a cast explicit
Sparse complains about the implicit cast. Making it explicit is indeed better coding style. Signed-off-by: Wolfram Sang <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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index 1aac2ad8edf2..7f63ec05bdf4 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -259,7 +259,7 @@ static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host, int addr, u32 val)
{
- writew(val, host->ctl + (addr << host->bus_shift));
+ writew(val & 0xffff, host->ctl + (addr << host->bus_shift));
writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift));
}