summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/main_usb.c
diff options
context:
space:
mode:
authorForest Bond2009-06-13 13:38:54 +0200
committerGreg Kroah-Hartman2009-09-15 21:01:32 +0200
commitdd8db704adce547bd099096a6431aada124867a4 (patch)
tree4df37a1eedb4f1594db7009843b5e34da424f9c9 /drivers/staging/vt6656/main_usb.c
parentStaging: vt6656: Replace net_device->priv accesses with netdev_priv calls. (diff)
downloadkernel-qcow2-linux-dd8db704adce547bd099096a6431aada124867a4.tar.gz
kernel-qcow2-linux-dd8db704adce547bd099096a6431aada124867a4.tar.xz
kernel-qcow2-linux-dd8db704adce547bd099096a6431aada124867a4.zip
Staging: vt6656: use net_device_ops for management functions
vt6656: use net_device_ops for management functions Signed-off-by: Forest Bond <forest@alittletooquiet.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/main_usb.c')
-rw-r--r--drivers/staging/vt6656/main_usb.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c
index 12a9ae08789e..228b3ecf971d 100644
--- a/drivers/staging/vt6656/main_usb.c
+++ b/drivers/staging/vt6656/main_usb.c
@@ -837,6 +837,17 @@ static int vntwusb_resume(struct usb_interface *intf)
}
#endif
+
+static const struct net_device_ops device_netdev_ops = {
+ .ndo_open = device_open,
+ .ndo_stop = device_close,
+ .ndo_do_ioctl = device_ioctl,
+ .ndo_get_stats = device_get_stats,
+ .ndo_start_xmit = device_xmit,
+ .ndo_set_multicast_list = device_set_multi,
+};
+
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
static int
@@ -896,12 +907,8 @@ vntwusb_found1(struct usb_device *udev, UINT interface, const struct usb_device_
pDevice->tx_80211 = device_dma0_tx_80211;
pDevice->sMgmtObj.pAdapter = (PVOID)pDevice;
- netdev->open = device_open;
- netdev->hard_start_xmit = device_xmit;
- netdev->stop = device_close;
- netdev->get_stats = device_get_stats;
- netdev->set_multicast_list = device_set_multi;
- netdev->do_ioctl = device_ioctl;
+ netdev->netdev_ops = &device_netdev_ops;
+
#ifdef WIRELESS_EXT
//2007-0508-01<Add>by MikeLiu