Commit c51eb1c6 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: tidyup void* cast for 64bit compiler

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2ea6b074
...@@ -999,7 +999,7 @@ static int rsnd_probe(struct platform_device *pdev) ...@@ -999,7 +999,7 @@ static int rsnd_probe(struct platform_device *pdev)
} }
priv->pdev = pdev; priv->pdev = pdev;
priv->flags = (u32)of_id->data; priv->flags = (unsigned long)of_id->data;
spin_lock_init(&priv->lock); spin_lock_init(&priv->lock);
/* /*
......
...@@ -379,7 +379,7 @@ struct rsnd_priv { ...@@ -379,7 +379,7 @@ struct rsnd_priv {
struct platform_device *pdev; struct platform_device *pdev;
spinlock_t lock; spinlock_t lock;
u32 flags; unsigned long flags;
#define RSND_GEN_MASK (0xF << 0) #define RSND_GEN_MASK (0xF << 0)
#define RSND_GEN1 (1 << 0) #define RSND_GEN1 (1 << 0)
#define RSND_GEN2 (2 << 0) #define RSND_GEN2 (2 << 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment