Skip to content

Commit

Permalink
staging: r8712u: Merging Realtek's latest (v2.6.6). Removed _usb_allo…
Browse files Browse the repository at this point in the history
…c_urb.

Replaced (Realtek's) _usb_alloc_urb by (linux's own) usb_alloc_urb.

Signed-off-by: Ali Bahar <ali@internetDog.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ali Bahar authored and Greg Kroah-Hartman committed Sep 7, 2011
1 parent 7bcd9ce commit 68e9b24
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion drivers/staging/rtl8712/osdep_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include "ethernet.h"
#include <linux/if_arp.h>
#include <linux/firmware.h>
#define _usb_alloc_urb(x, y) usb_alloc_urb(x, y)
#define _usb_submit_urb(x, y) usb_submit_urb(x, y)

struct __queue {
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8712/recv_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int r8712_os_recvbuf_resource_alloc(struct _adapter *padapter,
int res = _SUCCESS;

precvbuf->irp_pending = false;
precvbuf->purb = _usb_alloc_urb(0, GFP_KERNEL);
precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL);
if (precvbuf->purb == NULL)
res = _FAIL;
precvbuf->pskb = NULL;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8712/usb_ops_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct zero_bulkout_context {

uint r8712_usb_init_intf_priv(struct intf_priv *pintfpriv)
{
pintfpriv->piorw_urb = _usb_alloc_urb(0, GFP_ATOMIC);
pintfpriv->piorw_urb = usb_alloc_urb(0, GFP_ATOMIC);
if (!pintfpriv->piorw_urb)
return _FAIL;
sema_init(&(pintfpriv->io_retevt), 0);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8712/xmit_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int r8712_xmit_resource_alloc(struct _adapter *padapter,
int i;

for (i = 0; i < 8; i++) {
pxmitbuf->pxmit_urb[i] = _usb_alloc_urb(0, GFP_KERNEL);
pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL);
if (pxmitbuf->pxmit_urb[i] == NULL) {
printk(KERN_ERR "r8712u: pxmitbuf->pxmit_urb[i]"
" == NULL");
Expand Down

0 comments on commit 68e9b24

Please sign in to comment.