ASoC: meson: fix do_div warning in spdifin

Even if this spdif input driver is only supposed to be used on 64bits
platform, there is possible problem with 32bits and do_div, as reported
by the kbuild robot. Just fix it.

Fixes: 5ce5658375 ("ASoC: meson: add axg spdif input")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Jerome Brunet 2018-12-13 16:44:28 +01:00 committed by Mark Brown
parent f231c34ca9
commit 165be3c260
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -146,8 +146,8 @@ static void axg_spdifin_write_mode_param(struct regmap *map, int mode,
unsigned int base_reg,
unsigned int width)
{
unsigned int offset = mode, rem;
unsigned int reg, shift;
uint64_t offset = mode;
unsigned int reg, shift, rem;
rem = do_div(offset, num_per_reg);