[ramips] unbreak portmapping - typo fix
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 9 Apr 2013 14:39:01 +0000 (14:39 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 9 Apr 2013 14:39:01 +0000 (14:39 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36293 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 5e95ab3..4e6d713 100644 (file)
@@ -987,7 +987,7 @@ of_switch_load_portmap(struct switch_dev *dev)
                const char *segment;
                int size, phys;
 
                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))
                        continue;
 
                if (of_property_read_string(port, "swconfig,segment", &segment))
index cb47ba5..38007a7 100644 (file)
                ralink,portmap = <0x2f>;
 
                port@0 {
                ralink,portmap = <0x2f>;
 
                port@0 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <0 4>;
                };
                port@1 {
                        swconfig,segment = "lan";
                        swconfig,portmap = <0 4>;
                };
                port@1 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <1 3>;
                };
                port@2 {
                        swconfig,segment = "lan";
                        swconfig,portmap = <1 3>;
                };
                port@2 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <2 2>;
                };
                port@3 {
                        swconfig,segment = "lan";
                        swconfig,portmap = <2 2>;
                };
                port@3 {
-                       conpatible = "swconfig,port";
+                       compatible = "swconfig,port";
                        swconfig,segment = "lan";
                        swconfig,portmap = <3 1>;
                };
                port@4 {
                        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>;
                };
        };
                        swconfig,portmap = <4 0>;
                };
        };