mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
ASoC: renesas: fsi: remove platform data style support
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>
This commit is contained in:
parent
fc83c6a271
commit
38d3273075
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user