]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 10 Jun 2016 22:11:54 +0000 (01:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2016 02:01:14 +0000 (22:01 -0400)
commit03c3d8e7f7a1f25d7f279d21dc39009b1a0ed4a2
treed00f26942bebaff6e8c38e2863171387dbc88e1f
parent97141635ea43b7ddd821b74144fb947d837e2569
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 <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c