netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HDLC driver: use unregister_netdev instead of unregister_netdevice
@ 2007-12-12  2:35 Wang Chen
  2007-12-12 18:46 ` David Miller
  2007-12-14 21:28 ` Krzysztof Halasa
  0 siblings, 2 replies; 6+ messages in thread
From: Wang Chen @ 2007-12-12  2:35 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Krzysztof Halasa, netdev, David S. Miller

[PATCH] HDLC driver: use unregister_netdev instead of unregister_netdevice

Since the caller and the upper caller doesn't hod the rtnl semaphore.
We should use unregister_netdev instead of unregister_netdevice.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
---
 hdlc_fr.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.24.rc5.org/drivers/net/wan/hdlc_fr.c	2007-10-10 04:31:38.000000000 +0800
+++ linux-2.6.24.rc5/drivers/net/wan/hdlc_fr.c	2007-12-12 10:25:13.000000000 +0800
@@ -1177,7 +1177,7 @@ static int fr_del_pvc(hdlc_device *hdlc,
 	if (dev->flags & IFF_UP)
 		return -EBUSY;		/* PVC in use */
 
-	unregister_netdevice(dev); /* the destructor will free_netdev(dev) */
+	unregister_netdev(dev); /* the destructor will free_netdev(dev) */
 	*get_dev_p(pvc, type) = NULL;
 
 	if (!pvc_is_used(pvc)) {
@@ -1202,10 +1202,10 @@ static void fr_destroy(struct net_device
 		pvc_device *next = pvc->next;
 		/* destructors will free_netdev() main and ether */
 		if (pvc->main)
-			unregister_netdevice(pvc->main);
+			unregister_netdev(pvc->main);
 
 		if (pvc->ether)
-			unregister_netdevice(pvc->ether);
+			unregister_netdev(pvc->ether);
 
 		kfree(pvc);
 		pvc = next;


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-14 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-12  2:35 [PATCH] HDLC driver: use unregister_netdev instead of unregister_netdevice Wang Chen
2007-12-12 18:46 ` David Miller
2007-12-13  3:13   ` Herbert Xu
2007-12-13  3:22     ` David Miller
2007-12-14 21:28 ` Krzysztof Halasa
2007-12-14 21:36   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).