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

From: Geert Uytterhoeven

Date: Thu Nov 19 2026 - 08:23:33 EST


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@xxxxxxxxx>
---
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