]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
PM / Domains: Do not check if simple providers have phandle cells
authorDave Gerlach <d-gerlach@ti.com>
Tue, 4 Apr 2017 15:59:27 +0000 (08:59 -0700)
committerSantosh Shilimkar <ssantosh@kernel.org>
Tue, 4 Apr 2017 15:59:27 +0000 (08:59 -0700)
commit213ec7fed30277ac04bcd401efe827603ce9ac2e
tree6fec11f4744f41d4212e7445d7f5a1442344633b
parenta5ea7a0fcbd7376b2c9fcb15fe59fec298c9ce9f
PM / Domains: Do not check if simple providers have phandle cells

There is no reason that a platform genpd driver registered using
of_genpd_add_provider_simple needs to be constrained to having no cells
in the "power-domains" phandle. Currently the genpd framework will fail
if any arguments are passed with for a simple provider but the framework
does not actually care, so remove the check for phandle argument count.

This will allow greater flexibility for genpd providers to use their own
arguments that are passed in the phandle and interpret them however they
see fit.

Acked-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
drivers/base/power/domain.c