]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm8650: Fix compile warnings in USB controller node
authorKrishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Wed, 3 Dec 2025 14:48:56 +0000 (20:18 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 16 Dec 2025 23:24:10 +0000 (15:24 -0800)
With W=1, the following error comes up:

Warning (avoid_unnecessary_addr_size): /soc@0/usb@a600000: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" or "ranges" property

This is because the child node being removed during flattening and moving
to latest bindings.

Fixes: 77e1f16b9302 ("arm64: dts: qcom: sm8650: Flatten the USB nodes")
Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251203144856.2711440-3-krishna.kurapati@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8650.dtsi

index 07ae74851621f2ec127735e6f1dd92164ffb8d4b..f8e1950a74ac96e9a3c5df3751ac2c2592672a9d 100644 (file)
 
                        dma-coherent;
 
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-
                        status = "disabled";
 
                        ports {