[PATCH NET-PREV 45/51] t7xx: Use __unregister_netdevice()

Kirill Tkhai posted 51 patches 9 months ago
[PATCH NET-PREV 45/51] t7xx: Use __unregister_netdevice()
Posted by Kirill Tkhai 9 months ago
->dellink is going to be called with nd_lock is held

Signed-off-by: Kirill Tkhai <tkhai@ya.ru>
---
 drivers/net/wwan/t7xx/t7xx_netdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wwan/t7xx/t7xx_netdev.c b/drivers/net/wwan/t7xx/t7xx_netdev.c
index 3bde38147930..d3da299a59ff 100644
--- a/drivers/net/wwan/t7xx/t7xx_netdev.c
+++ b/drivers/net/wwan/t7xx/t7xx_netdev.c
@@ -324,7 +324,7 @@ static void t7xx_ccmni_wwan_dellink(void *ctxt, struct net_device *dev, struct l
 	if (WARN_ON(ctlb->ccmni_inst[if_id] != ccmni))
 		return;
 
-	unregister_netdevice(dev);
+	__unregister_netdevice(dev);
 }
 
 static const struct wwan_ops ccmni_wwan_ops = {