Merge branch 'siocghwtstamp' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh...
[linux-drm-fsl-dcu.git] / drivers / net / ethernet / ti / cpsw.c
index bc0cb154fc53cdf1439c94d5d4f7c07f2c7a8d0d..c8a54f96cf5dba128eab5d10e771a12bc8b0d0cf 100644 (file)
@@ -1836,6 +1836,8 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
                }
 
                i++;
+               if (i == data->slaves)
+                       break;
        }
 
        return 0;