]> git.sur5r.net Git - u-boot/commit
net: keystone_net: remove redundant code from keystone_net.c
authorKhoronzhuk, Ivan <ivan.khoronzhuk@ti.com>
Mon, 29 Sep 2014 19:17:24 +0000 (22:17 +0300)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 15:27:05 +0000 (11:27 -0400)
commit497e9e03216bae505a8f06808975d0c4865622f2
treef0e67ae954fe2d27c0a1581cf0b39d3e72749fa3
parentf0772266103686abf33fbcf87646b7674d494ec1
net: keystone_net: remove redundant code from keystone_net.c

Remove unused tx_send_loop variable.

Removes duplicated get_link_status() call from the
keystone2_eth_send_packet().

The emac_gigabit_enable() is called at opening Ethernet and there is no
need to enable it on sending each packet. So remove that call
from keystone2_eth_send_packet() as well.

The calling of power/clock up functions are mostly the responsibility
of SoC/board code, so move these functions to appropriate place.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
board/ti/ks2_evm/board.c
drivers/net/keystone_net.c