[PATCH 1/3] ramips: mt7621-dts: fix switch at 1f warnings
Arınç ÜNAL
arinc.unal at arinc9.com
Mon Feb 7 11:30:09 PST 2022
Remove reg property from ports node to fix this warning:
Warning (unit_address_vs_reg): /ethernet at 1e100000/mdio-bus/switch at 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 at 1f node to fix this warning:
Warning (avoid_unnecessary_addr_size): /ethernet at 1e100000/mdio-bus/switch at 1f: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
---
target/linux/ramips/dts/mt7621.dtsi | 3 ---
1 file changed, 3 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 4a3327a364..0d08c120d0 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -481,8 +481,6 @@
switch0: switch at 1f {
compatible = "mediatek,mt7621";
- #address-cells = <1>;
- #size-cells = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&rstctrl 2>;
@@ -491,7 +489,6 @@
ports {
#address-cells = <1>;
#size-cells = <0>;
- reg = <0>;
port at 0 {
status = "disabled";
--
2.25.1
More information about the openwrt-devel
mailing list