Patchwork [08/12] usbnet: plusb: apply introduced usb command APIs

login
register
mail settings
Submitter Ming Lei
Date Oct. 2, 2012, 6:51 a.m.
Message ID <1349160684-6627-9-git-send-email-ming.lei@canonical.com>
Download mbox | patch
Permalink /patch/188402/
State Deferred
Delegated to: David Miller
Headers show

Comments

Ming Lei - Oct. 2, 2012, 6:51 a.m.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
 drivers/net/usb/plusb.c |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Patch

diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c
index 4584b9a..0fcc8e6 100644
--- a/drivers/net/usb/plusb.c
+++ b/drivers/net/usb/plusb.c
@@ -71,13 +71,10 @@ 
 static inline int
 pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index)
 {
-	return usb_control_msg(dev->udev,
-		usb_rcvctrlpipe(dev->udev, 0),
-		req,
-		USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
-		val, index,
-		NULL, 0,
-		USB_CTRL_GET_TIMEOUT);
+	return usbnet_read_cmd(dev, req,
+				USB_DIR_IN | USB_TYPE_VENDOR |
+				USB_RECIP_DEVICE,
+				val, index, NULL, 0);
 }
 
 static inline int