net: cpsw: unregister device on remove callback
The CPSW uses DMA, so we should quiesce the device before leaving
barebox. This patch unregisters the CPSW properly on the device
remove callback. To do this we have to fix the error path in
cpsw_slave_setup, since this function can fail and we need a
known slave status in the remove function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent acd1d67 commit 0706fd366faab8274d96662265ac8c14baf0762c
@Sascha Hauer Sascha Hauer authored on 28 Apr 2015
Showing 1 changed file
View
drivers/net/cpsw.c