Unverified Commit 80165bb8 authored by Aakash Hemadri's avatar Aakash Hemadri Committed by Mark Brown
Browse files

ASoC: tegra30: ahub: Use of_device_get_match_data



Prefer `of_device_get_match_data` over `of_match_device`

Retrieve OF match data using `of_device_get_match_data`, this is cleaner
and better expresses intent.

Signed-off-by: default avatarAakash Hemadri <aakashhemadri123@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/e568d621c9c05ee23732a6a6f9e3606a780b1707.1628971397.git.aakashhemadri123@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 31e53e13
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -518,7 +518,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
	void __iomem *regs_apbif, *regs_ahub;
	int ret = 0;

	match = of_match_device(tegra30_ahub_of_match, &pdev->dev);
	match = of_device_get_match_data(&pdev->dev);
	if (!match)
		return -EINVAL;
	soc_data = match->data;