[PATCH 11/11] ASoC: tegra: tegra210_sfc: Use devm_pm_runtime_enable()

From: phucduc . bui

Date: Fri Dec 04 2026 - 06:24:45 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_sfc.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sound/soc/tegra/tegra210_sfc.c b/sound/soc/tegra/tegra210_sfc.c
index d86cb2276630..d9e5b5a6fb47 100644
--- a/sound/soc/tegra/tegra210_sfc.c
+++ b/sound/soc/tegra/tegra210_sfc.c
@@ -3604,6 +3604,10 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev)

regcache_cache_only(sfc->regmap, true);

+ err = devm_pm_runtime_enable(&pdev->dev);
+ if (err)
+ return err;
+
err = devm_snd_soc_register_component(dev, &tegra210_sfc_cmpnt,
tegra210_sfc_dais,
ARRAY_SIZE(tegra210_sfc_dais));
@@ -3611,16 +3615,9 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev)
return dev_err_probe(dev, err,
"can't register SFC component\n");

- pm_runtime_enable(&pdev->dev);
-
return 0;
}

-static void tegra210_sfc_platform_remove(struct platform_device *pdev)
-{
- pm_runtime_disable(&pdev->dev);
-}
-
static const struct dev_pm_ops tegra210_sfc_pm_ops = {
RUNTIME_PM_OPS(tegra210_sfc_runtime_suspend,
tegra210_sfc_runtime_resume, NULL)
@@ -3634,7 +3631,6 @@ static struct platform_driver tegra210_sfc_driver = {
.pm = pm_ptr(&tegra210_sfc_pm_ops),
},
.probe = tegra210_sfc_platform_probe,
- .remove = tegra210_sfc_platform_remove,
};
module_platform_driver(tegra210_sfc_driver)

--
2.43.0