]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/smc911x.c
sunxi: Fix A20-OLinuXino-MICRO LAN8710 support
[u-boot] / drivers / net / smc911x.c
index c788f3b52953f73ad393107a9e74276702129cbf..feae8c09cf168117db9a9ab6d4ddbb95f147b691 100644 (file)
@@ -230,7 +230,7 @@ static int smc911x_miiphy_read(struct mii_dev *bus, int phy, int devad,
                        return retval;
                return val;
        }
-       return -1;
+       return -ENODEV;
 }
 /* wrapper for smc911x_eth_phy_write */
 static int smc911x_miiphy_write(struct mii_dev *bus, int phy, int devad,
@@ -239,7 +239,7 @@ static int smc911x_miiphy_write(struct mii_dev *bus, int phy, int devad,
        struct eth_device *dev = eth_get_dev_by_name(bus->name);
        if (dev)
                return smc911x_eth_phy_write(dev, phy, reg, val);
-       return -1;
+       return -ENODEV;
 }
 #endif