diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-10-07 06:42:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-07 07:19:51 -0400 |
commit | dcc448e619194098b24477a6d56af50c57f26f1d (patch) | |
tree | 8add6a35e898384d9a27357c4cbaef9eaa87d041 | |
parent | 462c30bc8b3457e2904c45babf4cb06c3b38ed4e (diff) |
ASoC: rsnd: Remove obsolete platform data support
Since commit 3d7608e4c169af03 ("ARM: shmobile: bockw: remove legacy
board file and config"), Renesas R-Car SoCs are only supported in
generic DT-only ARM multi-platform builds. The driver doesn't need to
use platform data anymore, hence remove platform data configuration.
Move <sound/rcar_snd.h> to sound/soc/sh/rcar/, as it's no longer needed
by platform code.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/core.c | 19 | ||||
-rw-r--r-- | sound/soc/sh/rcar/rcar_snd.h (renamed from include/sound/rcar_snd.h) | 0 | ||||
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 3 | ||||
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 3 |
4 files changed, 7 insertions, 18 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index eec294da81e3..6ef9a884ca7c 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -1236,20 +1236,11 @@ static int rsnd_probe(struct platform_device *pdev) | |||
1236 | }; | 1236 | }; |
1237 | int ret, i; | 1237 | int ret, i; |
1238 | 1238 | ||
1239 | info = NULL; | 1239 | info = devm_kzalloc(&pdev->dev, sizeof(struct rcar_snd_info), |
1240 | of_data = NULL; | 1240 | GFP_KERNEL); |
1241 | if (of_id) { | 1241 | if (!info) |
1242 | info = devm_kzalloc(&pdev->dev, | 1242 | return -ENOMEM; |
1243 | sizeof(struct rcar_snd_info), GFP_KERNEL); | 1243 | of_data = of_id->data; |
1244 | of_data = of_id->data; | ||
1245 | } else { | ||
1246 | info = pdev->dev.platform_data; | ||
1247 | } | ||
1248 | |||
1249 | if (!info) { | ||
1250 | dev_err(dev, "driver needs R-Car sound information\n"); | ||
1251 | return -ENODEV; | ||
1252 | } | ||
1253 | 1244 | ||
1254 | /* | 1245 | /* |
1255 | * init priv data | 1246 | * init priv data |
diff --git a/include/sound/rcar_snd.h b/sound/soc/sh/rcar/rcar_snd.h index d8e33d38da43..d8e33d38da43 100644 --- a/include/sound/rcar_snd.h +++ b/sound/soc/sh/rcar/rcar_snd.h | |||
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index e4068d78616c..e9fef53968b4 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -21,10 +21,11 @@ | |||
21 | #include <linux/of_irq.h> | 21 | #include <linux/of_irq.h> |
22 | #include <linux/sh_dma.h> | 22 | #include <linux/sh_dma.h> |
23 | #include <linux/workqueue.h> | 23 | #include <linux/workqueue.h> |
24 | #include <sound/rcar_snd.h> | ||
25 | #include <sound/soc.h> | 24 | #include <sound/soc.h> |
26 | #include <sound/pcm_params.h> | 25 | #include <sound/pcm_params.h> |
27 | 26 | ||
27 | #include "rcar_snd.h" | ||
28 | |||
28 | /* | 29 | /* |
29 | * pseudo register | 30 | * pseudo register |
30 | * | 31 | * |
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index 5e05f9422073..842a35b1363a 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c | |||
@@ -700,9 +700,6 @@ static void rsnd_of_parse_ssi(struct platform_device *pdev, | |||
700 | struct device *dev = &pdev->dev; | 700 | struct device *dev = &pdev->dev; |
701 | int nr, i; | 701 | int nr, i; |
702 | 702 | ||
703 | if (!of_data) | ||
704 | return; | ||
705 | |||
706 | node = rsnd_ssi_of_node(priv); | 703 | node = rsnd_ssi_of_node(priv); |
707 | if (!node) | 704 | if (!node) |
708 | return; | 705 | return; |