Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28305
b: refs/heads/master
c: f44f725
h: refs/heads/master
i:
  28303: 09c79d3
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent 4c7833a commit 1da5b8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: 86478944eba887f149e151bacc023ae4b2d23ea6
refs/heads/master: f44f725f7d635e8b9786eef13f836dc1a2851495
17 changes: 11 additions & 6 deletions trunk/drivers/usb/net/zaurus.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static const struct driver_info zaurus_sl5x00_info = {
.check_connect = always_connected,
.bind = zaurus_bind,
.unbind = usbnet_cdc_unbind,
.tx_fixup = zaurus_tx_fixup,
.tx_fixup = zaurus_tx_fixup,
};
#define ZAURUS_STRONGARM_INFO ((unsigned long)&zaurus_sl5x00_info)

Expand All @@ -119,7 +119,7 @@ static const struct driver_info zaurus_pxa_info = {
.check_connect = always_connected,
.bind = zaurus_bind,
.unbind = usbnet_cdc_unbind,
.tx_fixup = zaurus_tx_fixup,
.tx_fixup = zaurus_tx_fixup,
};
#define ZAURUS_PXA_INFO ((unsigned long)&zaurus_pxa_info)

Expand All @@ -129,7 +129,7 @@ static const struct driver_info olympus_mxl_info = {
.check_connect = always_connected,
.bind = zaurus_bind,
.unbind = usbnet_cdc_unbind,
.tx_fixup = zaurus_tx_fixup,
.tx_fixup = zaurus_tx_fixup,
};
#define OLYMPUS_MXL_INFO ((unsigned long)&olympus_mxl_info)

Expand Down Expand Up @@ -228,6 +228,11 @@ static int blan_mdlm_bind(struct usbnet *dev, struct usb_interface *intf)
detail->bDetailData[2]);
goto bad_desc;
}

/* same extra framing as for non-BLAN mode */
dev->net->hard_header_len += 6;
dev->rx_urb_size = dev->net->hard_header_len
+ dev->net->mtu;
break;
}
next_desc:
Expand Down Expand Up @@ -258,7 +263,7 @@ static const struct driver_info bogus_mdlm_info = {
.description = "pseudo-MDLM (BLAN) device",
.flags = FLAG_FRAMING_Z,
.check_connect = always_connected,
.tx_fixup = zaurus_tx_fixup,
.tx_fixup = zaurus_tx_fixup,
.bind = blan_mdlm_bind,
};

Expand Down Expand Up @@ -367,13 +372,13 @@ static struct usb_driver zaurus_driver = {

static int __init zaurus_init(void)
{
return usb_register(&zaurus_driver);
return usb_register(&zaurus_driver);
}
module_init(zaurus_init);

static void __exit zaurus_exit(void)
{
usb_deregister(&zaurus_driver);
usb_deregister(&zaurus_driver);
}
module_exit(zaurus_exit);

Expand Down

0 comments on commit 1da5b8b

Please sign in to comment.