]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet:cdc-phonet: remove usb_get/put_dev in .probe and .disconnect
authortom.leiming@gmail.com <tom.leiming@gmail.com>
Mon, 11 Jun 2012 15:19:41 +0000 (15:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jun 2012 01:50:23 +0000 (18:50 -0700)
commit8f558fe7295ee4af8dd2832b1011ea27c7e9ac6c
tree6c90ef6aab55bea6e86f8baead458b5fab67ed92
parente6bd0e12d7b9f0ac6d9b36541ef81dde1ff67c9a
usbnet:cdc-phonet: remove usb_get/put_dev in .probe and .disconnect

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 <tom.leiming@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc-phonet.c