net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
authorIvan Khoronzhuk <[email protected]>
Fri, 10 Jun 2016 22:11:54 +0000 (01:11 +0300)
committerDavid S. Miller <[email protected]>
Mon, 13 Jun 2016 02:01:14 +0000 (22:01 -0400)
commitd941ebe88a411aa281cc80477a93feb931a1b50b
treed00f26942bebaff6e8c38e2863171387dbc88e1f
parentcbdf451164785c9cf5acd5d2983c1e7c778df4c1
net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

There is no reason to destroy channels that are destroyed while
cpdma_ctlr destroy. In this case no need to remember how much
channels where created and destroy them by one, as cpdma_ctlr
destroys all of them.

Signed-off-by: Ivan Khoronzhuk <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/ti/cpsw.c