ASoC: kirkwood: fix compilation warning in kirkwood_dma_open
authorVladimir Murzin <murzin.v@gmail.com>
Sun, 29 Sep 2013 14:00:13 +0000 (16:00 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 1 Oct 2013 10:49:35 +0000 (11:49 +0100)
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 <murzin.v@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/kirkwood/kirkwood-dma.c

index 0c85c4e1a1ae8bd4397726dcc653de0b23548f51..55d0d9d3a9fdda319773551674b01e8bd6775e20 100644 (file)
@@ -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();