]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: renesas: fsi: remove platform data style support
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 10 Jun 2026 00:49:24 +0000 (00:49 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 11:00:24 +0000 (12:00 +0100)
Renesas FSI driver has created for "platform data style" first, and
expanded to "DT style".

SuperH Ecovec24/7724se are the last user of "platform data style", but
its sound should not work during almost 10 years, because Simple-Card's
"platform data style" is broken, but no one reported it.

SuperH is planning to switch to "DT style", "platform data style" is no
longer working, and it seems there is no user. Let's remove "platform
data style", because keeping compatibility is difficult.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87tsrb43u3.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/renesas/fsi.c

index b72396b5de7dc8f997ad5cf64a7e579ca366adf4..fb376569b470fd0fb80abe0a0f36fadfdb4bffb8 100644 (file)
@@ -2002,20 +2002,10 @@ static int fsi_probe(struct platform_device *pdev)
 
        memset(&info, 0, sizeof(info));
 
-       core = NULL;
-       if (np) {
-               core = of_device_get_match_data(&pdev->dev);
-               fsi_of_parse("fsia", np, &info.port_a, &pdev->dev);
-               fsi_of_parse("fsib", np, &info.port_b, &pdev->dev);
-       } else {
-               const struct platform_device_id *id_entry = pdev->id_entry;
-               if (id_entry)
-                       core = (struct fsi_core *)id_entry->driver_data;
-
-               if (pdev->dev.platform_data)
-                       memcpy(&info, pdev->dev.platform_data, sizeof(info));
-       }
+       fsi_of_parse("fsia", np, &info.port_a, &pdev->dev);
+       fsi_of_parse("fsib", np, &info.port_b, &pdev->dev);
 
+       core = of_device_get_match_data(&pdev->dev);
        if (!core) {
                dev_err(&pdev->dev, "unknown fsi device\n");
                return -ENODEV;