From: Arınç ÜNAL Date: Sat, 31 Dec 2022 12:41:53 +0000 (+0100) Subject: rampis: fix Reference to non-existent node for GB-PC2 X-Git-Tag: v21.02.6~36 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=76c9c2b113a8d372b4b4c1a5ccc941fb895dbdf5;p=openwrt%2Fopenwrt.git rampis: fix Reference to non-existent node for GB-PC2 Fix cannot build: Reference to non-existent node or label "macaddr_factory_e000" dtb compilation error. The cherry-pick had to be reworked to use the old mtd-mac-address way as openwrt-21.02 still wasn't migrated to nvmem implementation. Fixes: d604032c2a50 ("ramips: fix GB-PC1 and GB-PC2 device support") Fixes: #11654 Fixes: #11385 Signed-off-by: Arınç ÜNAL [ rework commit message, add more fixes tag ] Signed-off-by: Christian Marangi --- diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts index 8d0eaee1d4..e27c4e4d47 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts @@ -119,8 +119,7 @@ label = "ethyellow"; phy-handle = <ðphy5>; - nvmem-cells = <&macaddr_factory_e000>; - nvmem-cell-names = "mac-address"; + mtd-mac-address = <&factory 0xe000>; }; &mdio {