diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2018-12-13 10:44:28 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-12-13 11:20:28 -0500 |
commit | 165be3c260f88a5f8c55d89458ad1f1d9efd701f (patch) | |
tree | 41ede151a6a64b37ad910fd46ba4b66dd2e67e6c /sound | |
parent | f231c34ca9772f0b0e2d1b781e9c415847aff522 (diff) |
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: 5ce5658375e6 ("ASoC: meson: add axg spdif input")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/meson/axg-spdifin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/meson/axg-spdifin.c b/sound/soc/meson/axg-spdifin.c index 09f385a2bbba..01b2035fa841 100644 --- a/sound/soc/meson/axg-spdifin.c +++ b/sound/soc/meson/axg-spdifin.c | |||
@@ -146,8 +146,8 @@ static void axg_spdifin_write_mode_param(struct regmap *map, int mode, | |||
146 | unsigned int base_reg, | 146 | unsigned int base_reg, |
147 | unsigned int width) | 147 | unsigned int width) |
148 | { | 148 | { |
149 | unsigned int offset = mode, rem; | 149 | uint64_t offset = mode; |
150 | unsigned int reg, shift; | 150 | unsigned int reg, shift, rem; |
151 | 151 | ||
152 | rem = do_div(offset, num_per_reg); | 152 | rem = do_div(offset, num_per_reg); |
153 | 153 | ||