mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
ASoC: tegra210_ahub: Add check to of_device_get_match_data()
In tegra_ahub_probe(), check the result of function of_device_get_match_data(), return an error code in case it fails. Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com> Link: https://patch.msgid.link/20250513123744.3041724-1-ruc_gongyuanjun@163.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
85f8c2d56c
commit
04cb269c20
|
|
@ -1359,6 +1359,8 @@ static int tegra_ahub_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
ahub->soc_data = of_device_get_match_data(&pdev->dev);
|
||||
if (!ahub->soc_data)
|
||||
return -ENODEV;
|
||||
|
||||
platform_set_drvdata(pdev, ahub);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user