]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: rsnd: Remove obsolete platform data support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 7 Oct 2015 10:42:22 +0000 (12:42 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 7 Oct 2015 11:19:51 +0000 (12:19 +0100)
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>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rcar_snd.h [moved from include/sound/rcar_snd.h with 100% similarity]
sound/soc/sh/rcar/rsnd.h
sound/soc/sh/rcar/ssi.c

index eec294da81e325ca4e9a545c3b750bc6283267d3..6ef9a884ca7cf0959c3d781dc5b0a10d5a084bf3 100644 (file)
@@ -1236,20 +1236,11 @@ static int rsnd_probe(struct platform_device *pdev)
        };
        int ret, i;
 
-       info = NULL;
-       of_data = NULL;
-       if (of_id) {
-               info = devm_kzalloc(&pdev->dev,
-                                   sizeof(struct rcar_snd_info), GFP_KERNEL);
-               of_data = of_id->data;
-       } else {
-               info = pdev->dev.platform_data;
-       }
-
-       if (!info) {
-               dev_err(dev, "driver needs R-Car sound information\n");
-               return -ENODEV;
-       }
+       info = devm_kzalloc(&pdev->dev, sizeof(struct rcar_snd_info),
+                           GFP_KERNEL);
+       if (!info)
+               return -ENOMEM;
+       of_data = of_id->data;
 
        /*
         *      init priv data
index e4068d78616c0a6542d339aa356402ff0d92fbfc..e9fef53968b4d37bc6b22340773b9a8aee0a30df 100644 (file)
 #include <linux/of_irq.h>
 #include <linux/sh_dma.h>
 #include <linux/workqueue.h>
-#include <sound/rcar_snd.h>
 #include <sound/soc.h>
 #include <sound/pcm_params.h>
 
+#include "rcar_snd.h"
+
 /*
  *     pseudo register
  *
index 5e05f94220730fb63150c28bae8e3144c425622d..842a35b1363aca1851c1dba39f4c4ee679bfd259 100644 (file)
@@ -700,9 +700,6 @@ static void rsnd_of_parse_ssi(struct platform_device *pdev,
        struct device *dev = &pdev->dev;
        int nr, i;
 
-       if (!of_data)
-               return;
-
        node = rsnd_ssi_of_node(priv);
        if (!node)
                return;