ASoC: rockchip: i2s_tdm: Cast pointer to uintptr_t to fix warning on 32-bit

On 32-bit:
sound/soc/rockchip/rockchip_i2s_tdm.c:155:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]

Cast the pointer to uintptr_t instead of u64 to fix this.

Change-Id: Ie7dbbb59da68fadfe8ad639d93c513e38ab00b38
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2018-05-24 16:57:17 +08:00
parent 76a299b90c
commit bfe1e6e631

View File

@@ -145,7 +145,7 @@ static void rockchip_snd_xfer_reset_assert(struct rk_i2s_tdm_dev *i2s_tdm,
addr = cru_reset + (rx_bank * 4);
}
if (IS_ALIGNED((u64)addr, 8)) {
if (IS_ALIGNED((uintptr_t)addr, 8)) {
writeq(val, addr);
break;
}
@@ -189,7 +189,7 @@ static void rockchip_snd_xfer_reset_deassert(struct rk_i2s_tdm_dev *i2s_tdm,
addr = cru_reset + (rx_bank * 4);
}
if (IS_ALIGNED((u64)addr, 8)) {
if (IS_ALIGNED((uintptr_t)addr, 8)) {
writeq(val, addr);
break;
}