From: Ming Lei Date: Wed, 24 Oct 2012 19:47:01 +0000 (+0000) Subject: usbnet: plusb: apply introduced usb command APIs X-Git-Tag: upstream/snapshot3+hdmi~6096^2~564 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cdd248799070ed212e830037904687072bedef1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git usbnet: plusb: apply introduced usb command APIs Acked-by: Oliver Neukum Signed-off-by: Ming Lei Signed-off-by: David S. Miller --- 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