The macb driver does DMA and thus should be quiesced on shutdown. Add the remove callback. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/net/macb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index fe192f9bf4..b2957b7d29 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -719,6 +719,13 @@ static int macb_probe(struct device_d *dev) return 0; } +static void macb_remove(struct device_d *dev) +{ + struct macb_device *macb = dev->priv; + + macb_halt(&macb->netdev); +} + static const struct of_device_id macb_dt_ids[] = { { .compatible = "cdns,at91sam9260-macb",}, { /* sentinel */ } @@ -727,6 +734,7 @@ static const struct of_device_id macb_dt_ids[] = { static struct driver_d macb_driver = { .name = "macb", .probe = macb_probe, + .remove = macb_remove, .of_compatible = DRV_OF_COMPAT(macb_dt_ids), }; device_platform_driver(macb_driver); -- 2.19.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox