ipq806x: of net return patch

This commit is contained in:
ACwifidude
2022-02-06 10:55:41 -06:00
parent 1f9c2795a5
commit 785eb703a4

View File

@@ -0,0 +1,11 @@
--- a/drivers/of/of_net.c
+++ b/drivers/of/of_net.c
@@ -39,7 +39,7 @@ int of_get_phy_mode(struct device_node *
for (i = 0; i < PHY_INTERFACE_MODE_MAX; i++)
if (!strcasecmp(pm, phy_modes(i))) {
*interface = i;
- return 0;
+ return i;
}
return -ENODEV;