PM / Domains: Allow holes in genpd_data.domains array
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 15 Sep 2016 12:05:23 +0000 (14:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Sep 2016 22:56:34 +0000 (00:56 +0200)
commit609bed67bd8f72981faba75d80b3b48d746b7206
treebdbcf5687791e534a366599a703dc0fa081d12cc
parent17926551c98a4ff5d7fa3a574c60534fedb3f2c6
PM / Domains: Allow holes in genpd_data.domains array

In platforms such as Rockchip's, the array of domains isn't always
filled without holes, as which domains are present depend on the
particular SoC revision.

By allowing holes to be in the array, such SoCs can still use a single
set of constants to index the array of power domains.

Fixes: 0159ec670763 (PM / Domains: Verify the PM domain is present when adding a provider)
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c