net: macb: Fixed reading MII_LPA register

If macb is gem and is gigabit capable, lpa value is not read from
the right register(MII_LPA) and is read from MII_STAT1000. This patch
fixes reading of the lpa value.

Signed-off-by: Radu Pirea <radu_nicolae.pirea@upb.ro>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index c5560a7..ab831f4 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -613,7 +613,7 @@
 
 	/* First check for GMAC and that it is GiB capable */
 	if (gem_is_gigabit_capable(macb)) {
-		lpa = macb_mdio_read(macb, MII_STAT1000);
+		lpa = macb_mdio_read(macb, MII_LPA);
 
 		if (lpa & (LPA_1000FULL | LPA_1000HALF)) {
 			duplex = ((lpa & LPA_1000FULL) ? 1 : 0);