net: macb: Add remove callback
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 14 Apr 2017 06:36:04 +0000 (14:36 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 9 May 2017 18:14:15 +0000 (12:14 -0600)
commit1870d4d7bd229e5e06d660108046656ea24821d4
treeb78d57b0ef96dc4afadcb195ab8c1a6516d778e3
parent1c0ac8222a3fe2f4be5fb0a8368cddf4f692193f
net: macb: Add remove callback

To avoid the failure of mdio_register(), add the remove callback
to unregister the mii_dev when removing the ethernet device.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Fixed up unused variable warning, e.g. for gurnard:
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/net/macb.c