]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: fix dt probe for one port ethernet
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 2 Dec 2013 07:23:39 +0000 (12:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Dec 2013 21:55:30 +0000 (16:55 -0500)
commitec3ee123ea05968be3fee2526d09fe1130add54c
treee43849454715baa752f69abbe2e0fb956f70ec4b
parenta5d38bf7ebea993b08d50ff3b75bf296b5db47bb
drivers: net: cpsw: fix dt probe for one port ethernet

When only one port of the two port is pinned out, then dt probe is failing
because second port phy is not found. fixing this by checking the number of
slaves and breaking the loop.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c