]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-binding: fix compilation error of the example in qcom,gcc.yaml
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Wed, 22 Jan 2020 13:46:39 +0000 (14:46 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 28 Jan 2020 18:26:20 +0000 (10:26 -0800)
Running `make dt_binging_check`, gives the error:

DTC     Documentation/devicetree/bindings/clock/qcom,gcc.example.dt.yaml
Error: Documentation/devicetree/bindings/clock/qcom,gcc.example.dts:111.28-29 syntax error
FATAL ERROR: Unable to parse input tree

This is because the last example uses the macro RPM_SMD_XO_CLK_SRC which
is defined in qcom,rpmcc.h but the include of this header is missing.
Add the include to fix the error.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Link: https://lkml.kernel.org/r/20200122134639.11735-1-dafna.hirschfeld@collabora.com
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/clock/qcom,gcc.yaml

index 19d00794fe7d4d16a999d170bd1f4ae55cfdcde0..50ff07f80acb80515abc075c163a596cbd697753 100644 (file)
@@ -220,6 +220,7 @@ examples:
 
   # Example of MSM8998 GCC:
   - |
+    #include <dt-bindings/clock/qcom,rpmcc.h>
     clock-controller@100000 {
       compatible = "qcom,gcc-msm8998";
       #clock-cells = <1>;