aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König2022-06-29 21:42:24 +0200
committerMark Brown2022-07-05 19:54:00 +0100
commitfb617612fd8e017720d7fe907b22b4bb44027948 (patch)
tree88223f8ee5d89c6328298453e23716d7c33523e9
parenta10a8b6661c478dac3a8c55ad41f5cb00779c6b9 (diff)
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220629194224.175607-5-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/tegra/tegra20_das.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.c
index 39a6135dd0d0..c620ab0c601f 100644
--- a/sound/soc/tegra/tegra20_das.c
+++ b/sound/soc/tegra/tegra20_das.c
@@ -77,7 +77,6 @@
#define TEGRA20_DAS_DAC_ID_3 2
struct tegra20_das {
- struct device *dev;
struct regmap *regmap;
};
@@ -162,8 +161,6 @@ static int tegra20_das_probe(struct platform_device *pdev)
if (!das)
return -ENOMEM;
- das->dev = &pdev->dev;
-
regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(regs))
return PTR_ERR(regs);