net: mvpp2: Add remove function that is called before the OS is started
authorStefan Roese <sr@denx.de>
Thu, 23 Mar 2017 16:01:59 +0000 (17:01 +0100)
committerStefan Roese <sr@denx.de>
Tue, 9 May 2017 11:38:17 +0000 (13:38 +0200)
commit2f720f195792bb29289827ef9512e0366a81933b
treef31670da4ca55a0ecd620356774e9c296df911c2
parent2f92629112a1055ed37f8b05dfcf00c3f1875503
net: mvpp2: Add remove function that is called before the OS is started

This patch adds a remove function to the mvpp2 ethernet driver which is
called before the OS is started, doing:

- Allocate the used buffers back from the buffer manager
- Stop the BM activity

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Stefan Chulski <stefanc@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Nadav Haklai <nadavh@marvell.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c