PM / Domains: Fix DT example
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 07:18:21 +0000 (12:48 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Apr 2017 21:19:12 +0000 (23:19 +0200)
The power-domain provider's #power-domain-cells field is set to 0 and
yet the children is using an index to point the power domain. Fix it by
removing the index field.

Fixes: 70bb510e4279 (dt/bindings / PM/Domains: Update binding for PM domain idle states)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/devicetree/bindings/power/power_domain.txt

index 940707d..14bd9e9 100644 (file)
@@ -81,7 +81,7 @@ Example 3:
        child: power-controller@12341000 {
                compatible = "foo,power-controller";
                reg = <0x12341000 0x1000>;
-               power-domains = <&parent 0>;
+               power-domains = <&parent>;
                #power-domain-cells = <0>;
                domain-idle-states = <&DOMAIN_PWR_DN>;
        };