Skip to content

Commit

Permalink
ramips: mt7621-dts: fix switch@1f warnings
Browse files Browse the repository at this point in the history
Remove reg property from ports node to fix this warning:

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

Another warning surfaces afterwards. Remove #address-cells and #size-cells
from switch@1f node to fix this warning:

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

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
  • Loading branch information
arinc9 authored and ynezz committed Feb 26, 2022
1 parent 65c28d7 commit 2b20218
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions target/linux/ramips/dts/mt7621.dtsi
Expand Up @@ -481,8 +481,6 @@

switch0: switch@1f {
compatible = "mediatek,mt7621";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&rstctrl 2>;
Expand All @@ -494,7 +492,6 @@
ports {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;

port@0 {
status = "disabled";
Expand Down

0 comments on commit 2b20218

Please sign in to comment.