[ramips] unbreak portmapping - typo fix
authorJohn Crispin <john@openwrt.org>
Tue, 9 Apr 2013 14:39:01 +0000 (14:39 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 9 Apr 2013 14:39:01 +0000 (14:39 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36293

target/linux/generic/files/drivers/net/phy/swconfig.c
target/linux/ramips/dts/FONERA20N.dts

index 5e95ab3d947f934bad5de68858f4af3a301671b2..4e6d7136f0aa799564b727c5f0f3879bbc6c0e90 100644 (file)
@@ -987,7 +987,7 @@ of_switch_load_portmap(struct switch_dev *dev)
                const char *segment;
                int size, phys;
 
-               if (of_device_is_compatible(port, "swconfig,port"))
+               if (!of_device_is_compatible(port, "swconfig,port"))
                        continue;
 
                if (of_property_read_string(port, "swconfig,segment", &segment))
index cb47ba5ec6741050a15f96997aa8d94c695c73c1..38007a7bc907c043e0afb71f7f636f24afa0c9e7 100644 (file)
                ralink,portmap = <0x2f>;
 
                port@0 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <0 4>;
                };
                port@1 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <1 3>;
                };
                port@2 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <2 2>;
                };
                port@3 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <3 1>;
                };
                port@4 {
-                       conpatible = "swconfig,port";
-                       swconfig,segment = "lan";
+                       compatible = "swconfig,port";
+                       swconfig,segment = "wan";
                        swconfig,portmap = <4 0>;
                };
        };