perf jevents: Silence warning for ArchStd files
[linux-2.6-microblaze.git] / net / dsa / port.c
index 01e3026..6379d66 100644 (file)
@@ -550,7 +550,7 @@ int dsa_port_bridge_flags(const struct dsa_port *dp,
        struct dsa_switch *ds = dp->ds;
 
        if (!ds->ops->port_bridge_flags)
-               return -EINVAL;
+               return -EOPNOTSUPP;
 
        return ds->ops->port_bridge_flags(ds, dp->index, flags, extack);
 }