ASoC: rsnd: tidyup void* cast for 64bit compiler
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 19 Nov 2015 04:22:56 +0000 (04:22 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 20 Nov 2015 18:07:02 +0000 (18:07 +0000)
64bit compiler indicates this without this patch

linux/sound/soc/sh/rcar/core.c: In function 'rsnd_probe':
linux/sound/soc/sh/rcar/core.c:1002:16: warning: cast from pointer to\
     integer of different size [-Wpointer-to-int-cast]

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h

index 8dceae4b731af31b80142ded30253a1d501aa2a4..81a6bdb6848c715608a42c284f68cd20e64b91fe 100644 (file)
@@ -999,7 +999,7 @@ static int rsnd_probe(struct platform_device *pdev)
        }
 
        priv->pdev      = pdev;
-       priv->flags     = (u32)of_id->data;
+       priv->flags     = (unsigned long)of_id->data;
        spin_lock_init(&priv->lock);
 
        /*
index ae69670c5c0ccbf27be182550f2b0184fecc0169..42d2ac5cb0d1ba901b70277401e2e4f43c8b79b3 100644 (file)
@@ -379,7 +379,7 @@ struct rsnd_priv {
 
        struct platform_device *pdev;
        spinlock_t lock;
-       u32 flags;
+       unsigned long flags;
 #define RSND_GEN_MASK  (0xF << 0)
 #define RSND_GEN1      (1 << 0)
 #define RSND_GEN2      (2 << 0)