X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d72c973763a344ea3ba50b7e151716409ed095a3..be11e989ca09a64632f976654f69c655f8808675:/target/linux/ar71xx/patches-2.6.28/802-ag71xx_mdio_dynamic_mdio_bus.patch diff --git a/target/linux/ar71xx/patches-2.6.28/802-ag71xx_mdio_dynamic_mdio_bus.patch b/target/linux/ar71xx/patches-2.6.28/802-ag71xx_mdio_dynamic_mdio_bus.patch index fa84e5550..9d0584a59 100644 --- a/target/linux/ar71xx/patches-2.6.28/802-ag71xx_mdio_dynamic_mdio_bus.patch +++ b/target/linux/ar71xx/patches-2.6.28/802-ag71xx_mdio_dynamic_mdio_bus.patch @@ -47,7 +47,7 @@ - snprintf(am->mii_bus.id, MII_BUS_ID_SIZE, "%x", 0); + am->mii_bus = mdiobus_alloc(); + if (am->mii_bus == NULL) { -+ err = -NOMEM; ++ err = -ENOMEM; + goto err_iounmap; + } +