]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fix rockchip 64-bit build warning
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Nov 2015 17:15:56 +0000 (18:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 13:54:02 +0000 (13:54 +0000)
commit4ab923cf7d0b67032c1a7ecce65e60e7bed08132
tree7b241e2025fd0aea22a152dd324d599aa36e1c0f
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
ASoC: fix rockchip 64-bit build warning

The rk_spdif_probe uses the device match data as a token to identify a
particular device, but accidentally casts a pointer to 'int', which is
not portable, as gcc points out in this warning on arm64:

rockchip_spdif.c: In function 'rk_spdif_probe':
rockchip_spdif.c:283:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

This changes the logic to compare two pointer values instead, using
the same cast that was used for initializing the value in the first
place.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c