Skip to content

Commit

Permalink
soc: ti: ti_sci_pm_domains: Populate name for genpd
Browse files Browse the repository at this point in the history
Commit b6a1d09 ("PM / Domains: Extend generic power domain
debugfs") now creates a debugfs directory for each genpd based on the
name of the genpd. Currently no name is given to the genpd created by
ti_sci_pm_domains driver so because of this we see a NULL pointer
dereferences when it is accessed on boot when the debugfs entry creation
is attempted.

Give the genpd a name before registering it to avoid this.

Fixes: 52835d5 ("soc: ti: Add ti_sci_pm_domains driver")
Signed-off-by: Dave Gerlach <[email protected]>
Signed-off-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
dgerlach authored and arndb committed Aug 18, 2017
1 parent 9311248 commit 4dd6a99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/soc/ti/ti_sci_pm_domains.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ static int ti_sci_pm_domain_probe(struct platform_device *pdev)

ti_sci_pd->dev = dev;

ti_sci_pd->pd.name = "ti_sci_pd";

ti_sci_pd->pd.attach_dev = ti_sci_pd_attach_dev;
ti_sci_pd->pd.detach_dev = ti_sci_pd_detach_dev;

Expand Down

0 comments on commit 4dd6a99

Please sign in to comment.