projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ffbe4d
)
usbnet: plusb: apply introduced usb command APIs
author
Ming Lei
<
[email protected]
>
Wed, 24 Oct 2012 19:47:01 +0000
(19:47 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 26 Oct 2012 07:36:51 +0000
(
03:36
-0400)
Acked-by: Oliver Neukum <
[email protected]
>
Signed-off-by: Ming Lei <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/usb/plusb.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/plusb.c
b/drivers/net/usb/plusb.c
index 4584b9a805b3b044b0261871def65c6b5cf13c03..0fcc8e65a06800a390b2aab1ab4ff1f7486cd051 100644
(file)
--- 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