OSDN Git Service

ASoC: txx9: don't work around too small resource_size_t
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Apr 2020 15:00:05 +0000 (17:00 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sun, 19 Apr 2020 14:06:06 +0000 (16:06 +0200)
commitacfaaf52ebfd02de509bc212fc3e8c8bac187110
tree126234e7b67abec2adafe2691174d5c460a78de9
parent9446aa5062e972265427368314039fe74635bec2
ASoC: txx9: don't work around too small resource_size_t

The txx9 sound driver deends on HAS_TXX9_ACLC, which is only set for
three tx49xx SOCs, and thus always has a 64-bit phys_addr_t and
resource_size_t.  Instead of poking into ioremap internals to work
around a potentially too small resource_size_t just add a BUILD_BUG_ON
to catch such a case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
sound/soc/txx9/txx9aclc-ac97.c