diff options
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c index 5e95ab3d94..4e6d7136f0 100644 --- a/target/linux/generic/files/drivers/net/phy/swconfig.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig.c @@ -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)) |