From: Petr Štetiar <ynezz@true.cz>
Date: Wed, 12 Dec 2018 19:45:14 +0000 (+0100)
Subject: ath79: ubnt-bullet-m-xw: Move eth0 mtd-mac-address to the common include
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=74f46d90becfa0cdf29bbd49ff968db1ab5a6530;p=openwrt%2Fstaging%2Fnbd.git

ath79: ubnt-bullet-m-xw: Move eth0 mtd-mac-address to the common include

It's same for Bullet and Nanostation so far, so let's hope it's going to
be the same for other boards sharing the same platform.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
---

diff --git a/target/linux/ath79/dts/ar9342_ubnt_bullet-m-xw.dts b/target/linux/ath79/dts/ar9342_ubnt_bullet-m-xw.dts
index 67833bb6f9..fc24c80582 100644
--- a/target/linux/ath79/dts/ar9342_ubnt_bullet-m-xw.dts
+++ b/target/linux/ath79/dts/ar9342_ubnt_bullet-m-xw.dts
@@ -24,8 +24,6 @@
 &eth0 {
 	status = "okay";
 
-	mtd-mac-address = <&eeprom 0x0>;
-
 	phy-mode = "rgmii";
 	phy-handle = <&phy4>;
 
diff --git a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
index f42524e2d9..01ea7c9eb3 100644
--- a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
+++ b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
@@ -117,3 +117,7 @@
 	mtd-cal-data = <&eeprom 0x1000>;
 	mtd-mac-address = <&eeprom 0x1002>;
 };
+
+&eth0 {
+	mtd-mac-address = <&eeprom 0x0>;
+};