Skip to content

Commit

Permalink
ASoC: kirkwood: fix compilation warning in kirkwood_dma_open
Browse files Browse the repository at this point in the history
writel() supposes the first argument of type unsigned int. This fix the
warning:

sound/soc/kirkwood/kirkwood-dma.c: In function 'kirkwood_dma_open':
sound/soc/kirkwood/kirkwood-dma.c:164:3: warning: large integer implicitly
truncated to unsigned type [-Woverflow]

Signed-off-by: Vladimir Murzin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
murzinv authored and broonie committed Oct 1, 2013
1 parent ce3d060 commit e2c9917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/kirkwood/kirkwood-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int kirkwood_dma_open(struct snd_pcm_substream *substream)
* Enable Error interrupts. We're only ack'ing them but
* it's useful for diagnostics
*/
writel((unsigned long)-1, priv->io + KIRKWOOD_ERR_MASK);
writel((unsigned int)-1, priv->io + KIRKWOOD_ERR_MASK);
}

dram = mv_mbus_dram_info();
Expand Down

0 comments on commit e2c9917

Please sign in to comment.