Thread (1 message) 1 message, 1 author, 2012-06-12
DORMANTno replies

[PATCH 2/7] usbnet:pegasus: remove usb_get/put_dev in .probe and .disconnect

From: Ming Lei <hidden>
Date: 2012-06-12 01:19:40
Subsystem: networking drivers, the rest, usb networking drivers, usb pegasus driver · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds, Petko Manolov

usb_device is parent device of usb_interface in the view of driver
model, so its reference count is always held during .probe/.disconnect
of usb_interface instance.

This patch just removes the unnecessay usb_get/put_dev.

Signed-off-by: Ming Lei <redacted>
---
 drivers/net/usb/pegasus.c |    4 ----
 1 file changed, 4 deletions(-)
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c
index 7023220..a0b5807 100644
--- a/drivers/net/usb/pegasus.c
+++ b/drivers/net/usb/pegasus.c
@@ -1329,8 +1329,6 @@ static int pegasus_probe(struct usb_interface *intf,
 	}
 	pegasus_count++;
 
-	usb_get_dev(dev);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help