diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-11-10 06:14:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-18 19:08:16 +0100 |
commit | 2ea6b0749c366787dbf6e87c7642e23b448ca63b (patch) | |
tree | 35b1ff1f7295010a8bf1c3c431d903997313a011 /sound/soc/sh/rcar/cmd.c | |
parent | ASoC: rsnd: remove struct rcar_snd_info (diff) | |
download | linux-2ea6b0749c366787dbf6e87c7642e23b448ca63b.tar.xz linux-2ea6b0749c366787dbf6e87c7642e23b448ca63b.zip |
ASoC: rsnd: remove struct platform_device from probe/remove parameter
Current Renesas sound driver requests struct platform_device on
probe/remove for each modules. But driver can get it by
rsnd_priv_to_pdev(). This patch removes unnecessary parameter
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/cmd.c')
-rw-r--r-- | sound/soc/sh/rcar/cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/sh/rcar/cmd.c b/sound/soc/sh/rcar/cmd.c index 2294c5c7a25a..ab904c3f20b5 100644 --- a/sound/soc/sh/rcar/cmd.c +++ b/sound/soc/sh/rcar/cmd.c @@ -127,8 +127,7 @@ struct rsnd_mod *rsnd_cmd_mod_get(struct rsnd_priv *priv, int id) return rsnd_mod_get((struct rsnd_cmd *)(priv->cmd) + id); } -int rsnd_cmd_probe(struct platform_device *pdev, - struct rsnd_priv *priv) +int rsnd_cmd_probe(struct rsnd_priv *priv) { struct device *dev = rsnd_priv_to_dev(priv); struct rsnd_cmd *cmd; @@ -160,8 +159,7 @@ int rsnd_cmd_probe(struct platform_device *pdev, return 0; } -void rsnd_cmd_remove(struct platform_device *pdev, - struct rsnd_priv *priv) +void rsnd_cmd_remove(struct rsnd_priv *priv) { struct rsnd_cmd *cmd; int i; |