]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/standalone/smc911x_eeprom.c
smc91xx_eeprom: Correct chip detection check.
[karo-tx-uboot.git] / examples / standalone / smc911x_eeprom.c
index c51a05028a5e09ed03657fae9696000d55991c16..00e826689f31b5001d3a3846c74088fab29254a4 100644 (file)
@@ -240,7 +240,7 @@ static void dump_eeprom(struct eth_device *dev)
 static int smc911x_init(struct eth_device *dev)
 {
        /* See if there is anything there */
-       if (!smc911x_detect_chip(dev))
+       if (smc911x_detect_chip(dev))
                return 1;
 
        smc911x_reset(dev);