[PATCH 2/3] pmdomain: ti: omap_prm: Remove dummy generic_pm_domain_data handling

Geert Uytterhoeven geert+renesas at glider.be
Thu Nov 19 05:22:58 PST 2026


The TI OMAP2+ PRM driver clears generic_pm_domain_data.data in its
generic_pm_domain.attach_dev() and generic_pm_domain.detach() callbacks,
but never sets it to a non-NULL value.  Presumably this was part of
unfinished handling copied from the TI SCI Generic Power Domain Driver.

Remove the unused code.

Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
---
 drivers/pmdomain/ti/omap_prm.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/pmdomain/ti/omap_prm.c b/drivers/pmdomain/ti/omap_prm.c
index 9515420da890cb31..eb4ce7cf9c176936 100644
--- a/drivers/pmdomain/ti/omap_prm.c
+++ b/drivers/pmdomain/ti/omap_prm.c
@@ -635,7 +635,6 @@ static int omap_prm_domain_attach_clock(struct device *dev,
 static int omap_prm_domain_attach_dev(struct generic_pm_domain *domain,
 				      struct device *dev)
 {
-	struct generic_pm_domain_data *genpd_data;
 	struct of_phandle_args pd_args;
 	struct omap_prm_domain *prmd;
 	struct device_node *np;
@@ -654,9 +653,6 @@ static int omap_prm_domain_attach_dev(struct generic_pm_domain *domain,
 			 prmd->pd.name, pd_args.args_count);
 	of_node_put(pd_args.np);
 
-	genpd_data = dev_gpd_data(dev);
-	genpd_data->data = NULL;
-
 	ret = omap_prm_domain_attach_clock(dev, prmd);
 	if (ret)
 		return ret;
@@ -667,12 +663,8 @@ static int omap_prm_domain_attach_dev(struct generic_pm_domain *domain,
 static void omap_prm_domain_detach_dev(struct generic_pm_domain *domain,
 				       struct device *dev)
 {
-	struct generic_pm_domain_data *genpd_data;
-
 	if (!pm_clk_no_clocks(dev))
 		pm_clk_destroy(dev);
-	genpd_data = dev_gpd_data(dev);
-	genpd_data->data = NULL;
 }
 
 static int omap_prm_domain_init(struct device *dev, struct omap_prm *prm)
-- 
2.43.0




More information about the linux-arm-kernel mailing list