[PATCH 4/5] fixup! net: eqos: Rockchip support

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Jun 9 01:55:11 PDT 2021


Network adapter needs to be halted on shutdown, thus define a remove
callback that triggers the halt.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/net/designware_rockchip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/designware_rockchip.c b/drivers/net/designware_rockchip.c
index 09b53e2cc08d..fb37243f6993 100644
--- a/drivers/net/designware_rockchip.c
+++ b/drivers/net/designware_rockchip.c
@@ -343,6 +343,7 @@ static __maybe_unused struct of_device_id dwc_ether_compatible[] = {
 static struct driver_d dwc_ether_driver = {
 	.name = "designware_eqos",
 	.probe = dwc_ether_probe,
+	.remove = eqos_remove,
 	.of_compatible = DRV_OF_COMPAT(dwc_ether_compatible),
 };
 device_platform_driver(dwc_ether_driver);
-- 
2.29.2




More information about the barebox mailing list