Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228237
b: refs/heads/master
c: 9be9881
h: refs/heads/master
i:
  228235: 6ff169a
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Dec 1, 2010
1 parent 3460eee commit a969d27
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 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: 4398954e5f91e340f5a2db53d219b6562e3e1bf0
refs/heads/master: 9be98819d31c4e105ad028ee092d27a46a9e298a
1 change: 0 additions & 1 deletion trunk/drivers/staging/winbond/wb35reg_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ u32 hal_get_bss_pk_cnt(struct hw_data *hw_data);

/* return 100ms count */
#define hal_get_time_count(_P) (_P->time_count / 10)
#define hal_detect_error(_P) (_P->WbUsb.DetectCount)

#define hal_ibss_disconnect(_A) (hal_stop_sync_bss(_A))

Expand Down
8 changes: 2 additions & 6 deletions trunk/drivers/staging/winbond/wbusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,8 @@ static void hal_stop(struct hw_data *pHwData)
static unsigned char hal_idle(struct hw_data *pHwData)
{
struct wb35_reg *reg = &pHwData->reg;
struct wb_usb *pWbUsb = &pHwData->WbUsb;

if (!pHwData->SurpriseRemove
&& (pWbUsb->DetectCount || reg->EP0vm_state != VM_STOP))
if (!pHwData->SurpriseRemove && reg->EP0vm_state != VM_STOP)
return false;

return true;
Expand Down Expand Up @@ -786,10 +784,8 @@ static int wb35_probe(struct usb_interface *intf,
interface = intf->cur_altsetting;
endpoint = &interface->endpoint[0].desc;

if (endpoint[2].wMaxPacketSize == 512) {
if (endpoint[2].wMaxPacketSize == 512)
printk("[w35und] Working on USB 2.0\n");
pWbUsb->IsUsb20 = 1;
}

err = wb35_hw_init(dev);
if (err)
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/winbond/wbusb_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include <linux/types.h>

struct wb_usb {
u32 IsUsb20;
struct usb_device *udev;
u32 DetectCount;
};
#endif

0 comments on commit a969d27

Please sign in to comment.