aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/device_main.c
diff options
context:
space:
mode:
authorForest Bond <forest@alittletooquiet.net>2009-06-02 14:44:33 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 11:00:51 -0700
commit572113540886faf393fd04408c394899df98ada3 (patch)
treec5c50d50c6b429cc587c416d2bacaa0294c56156 /drivers/staging/vt6655/device_main.c
parentStaging: vt6655: Remove LINUX_VERSION_CODE preprocessor conditionals. (diff)
downloadlinux-dev-572113540886faf393fd04408c394899df98ada3.tar.xz
linux-dev-572113540886faf393fd04408c394899df98ada3.zip
Staging: vt6655: use net_device_ops for management functions
vt6655: 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/vt6655/device_main.c')
-rw-r--r--drivers/staging/vt6655/device_main.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index f0e2c7351552..a10ed27acbc2 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -968,6 +968,16 @@ static BOOL device_release_WPADEV(PSDevice pDevice)
}
+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,
+};
+
+
#ifndef PRIVATE_OBJ
static int
@@ -1134,12 +1144,7 @@ device_found1(struct pci_dev *pcid, const struct pci_device_id *ent)
pDevice->pMgmt = &(pDevice->sMgmtObj);
dev->irq = pcid->irq;
- dev->open = device_open;
- dev->hard_start_xmit = device_xmit;
- dev->stop = device_close;
- dev->get_stats = device_get_stats;
- dev->set_multicast_list = device_set_multi;
- dev->do_ioctl = device_ioctl;
+ dev->netdev_ops = &device_netdev_ops;
#ifdef WIRELESS_EXT
//Einsn Modify for ubuntu-7.04