]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ti: ti_sci_pm_domains: Populate name for genpd
authorDave Gerlach <d-gerlach@ti.com>
Fri, 28 Jul 2017 16:51:34 +0000 (09:51 -0700)
committerArnd Bergmann <arnd@arndb.de>
Fri, 18 Aug 2017 09:59:53 +0000 (11:59 +0200)
commit81f921f166bc63aa36002d085d5a40ef0e43ac8d
tree139c5acd4a4f0d98649ce414f57b2de382561032
parent8309715b53655240de518b0ace33297b84071906
soc: ti: ti_sci_pm_domains: Populate name for genpd

Commit b6a1d093f96b ("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: e783401df109 ("soc: ti: Add ti_sci_pm_domains driver")
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/ti/ti_sci_pm_domains.c