]> asedeno.scripts.mit.edu Git - linux.git/commit
net: ethernet: ti: cpsw: simplify submit routine
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 9 Aug 2016 23:22:32 +0000 (02:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2016 00:27:38 +0000 (17:27 -0700)
commit27e9e10391259cbe2e52d6f0ac5b16b1d898d901
treed40219dbdcf6c0b54a66c91858061b6e3e27a286
parentab10dccb11608b96b43b557c12a5ad867723e503
net: ethernet: ti: cpsw: simplify submit routine

As second net dev is created only in case of dual_emac mode, port
number can be figured out in simpler way. Also no need to pass
redundant ndev struct.

Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c