aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/kaweth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/kaweth.c')
-rw-r--r--drivers/net/usb/kaweth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c
index 200fe3d525ca..e2a39b9be96e 100644
--- a/drivers/net/usb/kaweth.c
+++ b/drivers/net/usb/kaweth.c
@@ -778,7 +778,7 @@ static u32 kaweth_get_link(struct net_device *dev)
778 return kaweth->linkstate; 778 return kaweth->linkstate;
779} 779}
780 780
781static struct ethtool_ops ops = { 781static const struct ethtool_ops ops = {
782 .get_drvinfo = kaweth_get_drvinfo, 782 .get_drvinfo = kaweth_get_drvinfo,
783 .get_link = kaweth_get_link 783 .get_link = kaweth_get_link
784}; 784};
@@ -803,7 +803,8 @@ static void kaweth_usb_transmit_complete(struct urb *urb)
803/**************************************************************** 803/****************************************************************
804 * kaweth_start_xmit 804 * kaweth_start_xmit
805 ****************************************************************/ 805 ****************************************************************/
806static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net) 806static netdev_tx_t kaweth_start_xmit(struct sk_buff *skb,
807 struct net_device *net)
807{ 808{
808 struct kaweth_device *kaweth = netdev_priv(net); 809 struct kaweth_device *kaweth = netdev_priv(net);
809 __le16 *private_header; 810 __le16 *private_header;