Commit fb617612 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoC: tegra: tegra20_das: Drop write-only driver data member

The dev member of struct tegra20_das is only written once in .probe().
There is no loss of functionality if the member and the assignment go away.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220629194224.175607-5-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent a10a8b66
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
#define TEGRA20_DAS_DAC_ID_3 2 #define TEGRA20_DAS_DAC_ID_3 2
struct tegra20_das { struct tegra20_das {
struct device *dev;
struct regmap *regmap; struct regmap *regmap;
}; };
...@@ -162,8 +161,6 @@ static int tegra20_das_probe(struct platform_device *pdev) ...@@ -162,8 +161,6 @@ static int tegra20_das_probe(struct platform_device *pdev)
if (!das) if (!das)
return -ENOMEM; return -ENOMEM;
das->dev = &pdev->dev;
regs = devm_platform_ioremap_resource(pdev, 0); regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(regs)) if (IS_ERR(regs))
return PTR_ERR(regs); return PTR_ERR(regs);
......
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