diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index eafc9481..3aa853f3 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -4871,6 +4871,11 @@ static int tegra210_adsp_audio_platform_probe(struct platform_device *pdev) pr_info("tegra210_adsp_audio_platform_probe: platform probe started\n"); + if (dev_set_name(&pdev->dev, "%s", DRV_NAME_ADSP) < 0) { + dev_err(&pdev->dev, "error in setting adsp device name\n"); + return -ENODEV; + } + match = of_match_device(tegra210_adsp_audio_of_match, &pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n"); diff --git a/sound/soc/tegra-alt/tegra210_xbar_alt.c b/sound/soc/tegra-alt/tegra210_xbar_alt.c index e449d497..e9d2031d 100644 --- a/sound/soc/tegra-alt/tegra210_xbar_alt.c +++ b/sound/soc/tegra-alt/tegra210_xbar_alt.c @@ -1515,6 +1515,13 @@ static int tegra_dev_xbar_probe(struct platform_device *pdev) struct tegra_xbar_soc_data *soc_data; int ret; + /* required to register the xbar codec with generic name */ + if (dev_set_name(&pdev->dev, "%s", DRV_NAME) < 0) { + dev_err(&pdev->dev, "error in setting xbar device name\n"); + ret = -ENODEV; + goto err; + } + match = of_match_device(tegra_xbar_of_match, &pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n");