]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: tegra: tegra20_das: Drop write-only driver data member
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 29 Jun 2022 19:42:24 +0000 (21:42 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jul 2022 18:54:00 +0000 (19:54 +0100)
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>
sound/soc/tegra/tegra20_das.c

index 39a6135dd0d0cb9f5f6b6f054e8138b08378f7f7..c620ab0c601fae50d3fbc4ed7f5c2c04030e3596 100644 (file)
@@ -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);