]> git.karo-electronics.de Git - linux-beck.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)
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 <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c