mc : Reduce MC memory size to 128M
[oweals/u-boot.git] / drivers / net / smc911x.c
index c788f3b52953f73ad393107a9e74276702129cbf..257b0385c2a927dcde1465d7dad5476473086bc3 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * SMSC LAN9[12]1[567] Network driver
  *
  * (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -230,7 +229,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 +238,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