[source] ramips: rt3883: fix dtc compiler warning

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 20 02:47:53 PDT 2016


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=05912a304c1d3f31f350cd708fe4722389ec835a

commit 05912a304c1d3f31f350cd708fe4722389ec835a
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Tue Aug 16 07:39:28 2016 +0200

    ramips: rt3883: fix dtc compiler warning
    
    Fixes the following compiler warning:
    
    Warning (reg_format): "reg" property in /ethernet at 10100000/port at 0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    Warning (avoid_default_addr_size): Relying on default #address-cells value for /ethernet at 10100000/port at 0
    Warning (avoid_default_addr_size): Relying on default #size-cells value for /ethernet at 10100000/port at 0
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/ramips/dts/rt3883.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ramips/dts/rt3883.dtsi b/target/linux/ramips/dts/rt3883.dtsi
index 20fe7bf..64bc56b 100644
--- a/target/linux/ramips/dts/rt3883.dtsi
+++ b/target/linux/ramips/dts/rt3883.dtsi
@@ -306,6 +306,8 @@
 
 	ethernet: ethernet at 10100000 {
 		compatible = "ralink,rt3883-eth";
+		#address-cells = <1>;
+		#size-cells = <0>;
 		reg = <0x10100000 0x10000>;
 
 		resets = <&rstctrl 21>;



More information about the lede-commits mailing list