From 74f46d90becfa0cdf29bbd49ff968db1ab5a6530 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
Date: Wed, 12 Dec 2018 20:45:14 +0100
Subject: [PATCH] ath79: ubnt-bullet-m-xw: Move eth0 mtd-mac-address to the
 common include
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

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>
---
 target/linux/ath79/dts/ar9342_ubnt_bullet-m-xw.dts | 2 --
 target/linux/ath79/dts/ar9342_ubnt_xw.dtsi         | 4 ++++
 2 files changed, 4 insertions(+), 2 deletions(-)

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>;
+};
-- 
2.30.2