ARM: dts: socfpga_cyclone5_mcvevk: Drop unused #address-cells/#size-cells
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Thu, 7 Nov 2024 09:59:52 +0000 (10:59 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Tue, 17 Dec 2024 00:18:35 +0000 (18:18 -0600)
The properties #address-cells and #size-cells are only useful if there
is a ranges property or child nodes with "reg" properties.

This fixes a W=1 warning:

arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_mcvevk.dts:51.22-72.4: Warning (avoid_unnecessary_addr_size): /soc/i2c@ffc04000/stmpe811@41: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_mcvevk.dts

index ceaec29770c6ee19b26b7aa002b346fdbe9bdb34..c1e1264bcb0908db4f84175f27c5e7cf745fa426 100644 (file)
@@ -50,8 +50,6 @@
 
        stmpe1: stmpe811@41 {
                compatible = "st,stmpe811";
-               #address-cells = <1>;
-               #size-cells = <0>;
                reg = <0x41>;
                id = <0>;
                blocks = <0x5>;