ramips: set Netgear R6220 MAC NVMEM cell directly in the part node
authorRafał Miłecki <rafal@milecki.pl>
Tue, 9 May 2023 13:29:48 +0000 (15:29 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 14 Jul 2023 09:38:12 +0000 (11:38 +0200)
There is no need to use reference if original node it specified in
exactly the same file. This is a minor cleanup simplifying DTS code.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/ramips/dts/mt7621_netgear_r6220.dts

index 0f476ef060402fda4ca2911898f0247c62d0d080..7bb49c15b459cbb832367e5218cf87b40364a66f 100644 (file)
                };
 
                factory: partition@2e00000 {
+                       compatible = "nvmem-cells";
                        label = "factory";
                        reg = <0x2e00000 0x100000>;
                        read-only;
+
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       macaddr_factory_4: macaddr@4 {
+                               reg = <0x4 0x6>;
+                       };
                };
 
                partition@4200000 {
        nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_4: macaddr@4 {
-               reg = <0x4 0x6>;
-       };
-};