Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126555
b: refs/heads/master
c: f3d2018
h: refs/heads/master
i:
  126553: c6d8c03
  126551: e163072
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 6, 2009
1 parent 2e63f63 commit 9b1dacb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c126043801fda48761691f643e1138c2d3ead43
refs/heads/master: f3d201886d1b6d47bc357798c50ddf9d2072aa2f
8 changes: 4 additions & 4 deletions trunk/drivers/staging/winbond/linux/wb35reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Wb35Reg_BurstWrite(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterData, u8 N
// Trying to use burst write function if use new hardware
UrbSize = sizeof(struct wb35_reg_queue) + DataSize + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC( (void* *)&reg_queue, UrbSize );
urb = wb_usb_alloc_urb(0);
urb = usb_alloc_urb(0, GFP_ATOMIC);
if( urb && reg_queue ) {
reg_queue->DIRECT = 2;// burst write register
reg_queue->INDEX = RegisterNo;
Expand Down Expand Up @@ -175,7 +175,7 @@ Wb35Reg_Write( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue )
// update the register by send urb request------------------------------------
UrbSize = sizeof(struct wb35_reg_queue) + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC( (void* *)&reg_queue, UrbSize );
urb = wb_usb_alloc_urb(0);
urb = usb_alloc_urb(0, GFP_ATOMIC);
if (urb && reg_queue) {
reg_queue->DIRECT = 1;// burst write register
reg_queue->INDEX = RegisterNo;
Expand Down Expand Up @@ -235,7 +235,7 @@ Wb35Reg_WriteWithCallbackValue( phw_data_t pHwData, u16 RegisterNo, u32 Register
// update the register by send urb request------------------------------------
UrbSize = sizeof(struct wb35_reg_queue) + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC((void* *) &reg_queue, UrbSize );
urb = wb_usb_alloc_urb(0);
urb = usb_alloc_urb(0, GFP_ATOMIC);
if (urb && reg_queue) {
reg_queue->DIRECT = 1;// burst write register
reg_queue->INDEX = RegisterNo;
Expand Down Expand Up @@ -342,7 +342,7 @@ Wb35Reg_Read(phw_data_t pHwData, u16 RegisterNo, u32 * pRegisterValue )
// update the variable by send Urb to read register ------------------------------------
UrbSize = sizeof(struct wb35_reg_queue) + sizeof(struct usb_ctrlrequest);
OS_MEMORY_ALLOC( (void* *)&reg_queue, UrbSize );
urb = wb_usb_alloc_urb(0);
urb = usb_alloc_urb(0, GFP_ATOMIC);
if( urb && reg_queue )
{
reg_queue->DIRECT = 0;// read register
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/winbond/linux/wb35rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ unsigned char Wb35Rx_initial(phw_data_t pHwData)
// Initial the Buffer Queue
Wb35Rx_reset_descriptor( pHwData );

pWb35Rx->RxUrb = wb_usb_alloc_urb(0);
pWb35Rx->RxUrb = usb_alloc_urb(0, GFP_ATOMIC);
return (!!pWb35Rx->RxUrb);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/winbond/linux/wb35tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ unsigned char Wb35Tx_initial(phw_data_t pHwData)
{
PWB35TX pWb35Tx = &pHwData->Wb35Tx;

pWb35Tx->Tx4Urb = wb_usb_alloc_urb(0);
pWb35Tx->Tx4Urb = usb_alloc_urb(0, GFP_ATOMIC);
if (!pWb35Tx->Tx4Urb)
return FALSE;

pWb35Tx->Tx2Urb = wb_usb_alloc_urb(0);
pWb35Tx->Tx2Urb = usb_alloc_urb(0, GFP_ATOMIC);
if (!pWb35Tx->Tx2Urb)
{
usb_free_urb( pWb35Tx->Tx4Urb );
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/winbond/linux/wbusb_f.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,5 @@ void WbUsb_destroy(phw_data_t pHwData);
unsigned char WbWLanInitialize(struct wb35_adapter *adapter);
#define WbUsb_Stop( _A )

#define wb_usb_alloc_urb(_A) usb_alloc_urb(_A, GFP_ATOMIC)

#define WbUsb_CheckForHang( _P )
#define WbUsb_DetectStart( _P, _I )





0 comments on commit 9b1dacb

Please sign in to comment.