staging: mt7621-dts: fix switch0@0 warnings
authorArınç ÜNAL <arinc.unal@arinc9.com>
Tue, 25 Jan 2022 15:39:01 +0000 (18:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 12:03:47 +0000 (13:03 +0100)
commitcb3677bb17a8912953b813fb61fc7109e2972e7e
treec8f1f8d0fe04cf2db7c2faff3d1a381b194cef84
parent7eeec44d33f6be7caca4fe9ca4e653cf315a36c1
staging: mt7621-dts: fix switch0@0 warnings

Remove reg property from ports node to fix this warning:

Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch0@0/ports: node has a reg or ranges property, but no unit name

Another warning surfaces afterwards. Remove #address-cells and #size-cells
from switch0@0 node to fix this warning:

Warning (avoid_unnecessary_addr_size): /ethernet@1e100000/mdio-bus/switch0@0: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20220125153903.1469-3-arinc.unal@arinc9.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dts/mt7621.dtsi