Commit 4e63b565 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: fsl_spdif: Remove of_device_get_match_data() error check

The only way this driver can be probed is via devicetree, which always
provides driver data.

Remove the unneeded of_device_get_match_data() error check, as it
can never fail.
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20210118123815.1630882-6-festevam@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1ccf6e6e
...@@ -1305,10 +1305,6 @@ static int fsl_spdif_probe(struct platform_device *pdev) ...@@ -1305,10 +1305,6 @@ static int fsl_spdif_probe(struct platform_device *pdev)
spdif_priv->pdev = pdev; spdif_priv->pdev = pdev;
spdif_priv->soc = of_device_get_match_data(&pdev->dev); spdif_priv->soc = of_device_get_match_data(&pdev->dev);
if (!spdif_priv->soc) {
dev_err(&pdev->dev, "failed to get soc data\n");
return -ENODEV;
}
/* Initialize this copy of the CPU DAI driver structure */ /* Initialize this copy of the CPU DAI driver structure */
memcpy(&spdif_priv->cpu_dai_drv, &fsl_spdif_dai, sizeof(fsl_spdif_dai)); memcpy(&spdif_priv->cpu_dai_drv, &fsl_spdif_dai, sizeof(fsl_spdif_dai));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment