Skip to content

Commit

Permalink
ASoC: meson: fix do_div warning in spdifin
Browse files Browse the repository at this point in the history
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: 5ce5658 ("ASoC: meson: add axg spdif input")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jerome Brunet authored and Mark Brown committed Dec 13, 2018
1 parent f231c34 commit 165be3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/meson/axg-spdifin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 165be3c

Please sign in to comment.