[PATCH 2/2] ASoC: renesas: fsi: remove platform data style support
Kuninori Morimoto <[email protected]> Wed, 10 Jun 2026 00:49:24 +0000
| Newsgroups | org.kernel.vger.linux-sh,org.kernel.vger.linux-sound |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- This was included in 2nd patch-set. sound/soc/renesas/fsi.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/sound/soc/renesas/fsi.c b/sound/soc/renesas/fsi.c index 8cbd7acc26f49..8b8c704ded2dc 100644 --- a/sound/soc/renesas/fsi.c +++ b/sound/soc/renesas/fsi.c @@ -1923,20 +1923,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; -- 2.53.0