[PATCH 09/11] ASoC: tegra: tegra210_mvc: Use devm_pm_runtime_enable()
From: phucduc . bui
Date: Fri Dec 04 2026 - 06:24:34 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Replace pm_runtime_enable() with devm_pm_runtime_enable()
and remove the redundant remove callback.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/tegra/tegra210_mvc.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/sound/soc/tegra/tegra210_mvc.c b/sound/soc/tegra/tegra210_mvc.c
index a3f8aeb94cef..c39d29566209 100644
--- a/sound/soc/tegra/tegra210_mvc.c
+++ b/sound/soc/tegra/tegra210_mvc.c
@@ -739,6 +739,10 @@ static int tegra210_mvc_platform_probe(struct platform_device *pdev)
regcache_cache_only(mvc->regmap, true);
+ err = devm_pm_runtime_enable(dev);
+ if (err)
+ return err;
+
err = devm_snd_soc_register_component(dev, &tegra210_mvc_cmpnt,
tegra210_mvc_dais,
ARRAY_SIZE(tegra210_mvc_dais));
@@ -746,18 +750,11 @@ static int tegra210_mvc_platform_probe(struct platform_device *pdev)
return dev_err_probe(dev, err,
"can't register MVC component\n");
- pm_runtime_enable(dev);
-
tegra210_mvc_reset_vol_settings(mvc, &pdev->dev);
return 0;
}
-static void tegra210_mvc_platform_remove(struct platform_device *pdev)
-{
- pm_runtime_disable(&pdev->dev);
-}
-
static const struct dev_pm_ops tegra210_mvc_pm_ops = {
RUNTIME_PM_OPS(tegra210_mvc_runtime_suspend,
tegra210_mvc_runtime_resume, NULL)
@@ -771,7 +768,6 @@ static struct platform_driver tegra210_mvc_driver = {
.pm = pm_ptr(&tegra210_mvc_pm_ops),
},
.probe = tegra210_mvc_platform_probe,
- .remove = tegra210_mvc_platform_remove,
};
module_platform_driver(tegra210_mvc_driver)
--
2.43.0