diff options
author | Ming Lei | 2012-10-24 19:47:01 +0000 |
---|---|---|
committer | David S. Miller | 2012-10-26 03:36:51 -0400 |
commit | 7cdd248799070ed212e830037904687072bedef1 (patch) | |
tree | 3f0585abf06ac9650ad911e7ba489991f9e70f62 | |
parent | 5ffbe4daa8104145cca4050d717d68b0b256df45 (diff) |
usbnet: plusb: apply introduced usb command APIs
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/usb/plusb.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c index 4584b9a805b3..0fcc8e65a068 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 |