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

From: phucduc . bui

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

diff --git a/sound/soc/tegra/tegra210_ope.c b/sound/soc/tegra/tegra210_ope.c
index fe7ce939aae0..e753664e388e 100644
--- a/sound/soc/tegra/tegra210_ope.c
+++ b/sound/soc/tegra/tegra210_ope.c
@@ -333,6 +333,10 @@ static int tegra210_ope_probe(struct platform_device *pdev)
if (err < 0)
return err;

+ err = devm_pm_runtime_enable(dev);
+ if (err)
+ return err;
+
err = devm_snd_soc_register_component(dev, &tegra210_ope_cmpnt,
tegra210_ope_dais,
ARRAY_SIZE(tegra210_ope_dais));
@@ -340,16 +344,9 @@ static int tegra210_ope_probe(struct platform_device *pdev)
return dev_err_probe(dev, err,
"can't register OPE component\n");

- pm_runtime_enable(dev);
-
return 0;
}

-static void tegra210_ope_remove(struct platform_device *pdev)
-{
- pm_runtime_disable(&pdev->dev);
-}
-
static int tegra210_ope_runtime_suspend(struct device *dev)
{
struct tegra210_ope *ope = dev_get_drvdata(dev);
@@ -405,7 +402,6 @@ static struct platform_driver tegra210_ope_driver = {
.pm = pm_ptr(&tegra210_ope_pm_ops),
},
.probe = tegra210_ope_probe,
- .remove = tegra210_ope_remove,
};
module_platform_driver(tegra210_ope_driver)

--
2.43.0