diff options
author | Aakash Hemadri <[email protected]> | 2021-08-15 01:42:18 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-08-16 13:30:37 +0100 |
commit | 80165bb8043391f4ef4916bde947a4d805a54aa6 (patch) | |
tree | a013a877bfa885cd6d5c4b13256e447887d2fe44 | |
parent | 31e53e137c5a1e48cd21b45089ca232d355d064c (diff) |
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: Aakash Hemadri <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/e568d621c9c05ee23732a6a6f9e3606a780b1707.1628971397.git.aakashhemadri123@gmail.com
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/tegra/tegra30_ahub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c index b3e1df693381..0ac109b32329 100644 --- a/sound/soc/tegra/tegra30_ahub.c +++ b/sound/soc/tegra/tegra30_ahub.c @@ -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; |