Re: [PATCH v2] PM / Domains: Allow holes in array

From: Kevin Hilman
Date: Fri Sep 16 2016 - 12:13:14 EST

Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx> writes:

> 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@xxxxxxxxxxxxx>
> Cc: Jon Hunter <jonathanh@xxxxxxxxxx>
> Cc: Heiko Stuebner <heiko@xxxxxxxxx>
> ---
> v2: Also skip holes in the error path.

Acked-by: Kevin Hilman <khilman@xxxxxxxxxxxx>