diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 17:25:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 17:25:41 -0500 |
commit | 5fbbf5f648a9c4ef99276854f05b2255d1b004d3 (patch) | |
tree | 59c9ae762c3df2800e894001b3de58c5f1972486 /drivers/net/sungem.c | |
parent | ce279e6ec91c49f2c5f59f7492e19d39edbf8bbd (diff) | |
parent | 56cf391a9462a4897ea660a6af3662dda5ae8c84 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (84 commits)
wimax: fix kernel-doc for debufs_dentry member of struct wimax_dev
net: convert pegasus driver to net_device_ops
bnx2x: Prevent eeprom set when driver is down
net: switch kaweth driver to netdevops
pcnet32: round off carrier watch timer
i2400m/usb: wrap USB power saving in #ifdef CONFIG_PM
wimax: testing for rfkill support should also test for CONFIG_RFKILL_MODULE
wimax: fix kconfig interactions with rfkill and input layers
wimax: fix '#ifndef CONFIG_BUG' layout to avoid warning
r6040: bump release number to 0.20
r6040: warn about MAC address being unset
r6040: check PHY status when bringing interface up
r6040: make printks consistent with DRV_NAME
gianfar: Fixup use of BUS_ID_SIZE
mlx4_en: Returning real Max in get_ringparam
mlx4_en: Consider inline packets on completion
netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
qeth: convert to net_device_ops
vlan: add neigh_setup
dm9601: warn on invalid mac address
...
Diffstat (limited to 'drivers/net/sungem.c')
-rw-r--r-- | drivers/net/sungem.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index 8a7460412482..86c765d83de1 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
@@ -2989,6 +2989,19 @@ static void gem_remove_one(struct pci_dev *pdev) | |||
2989 | } | 2989 | } |
2990 | } | 2990 | } |
2991 | 2991 | ||
2992 | static const struct net_device_ops gem_netdev_ops = { | ||
2993 | .ndo_open = gem_open, | ||
2994 | .ndo_stop = gem_close, | ||
2995 | .ndo_start_xmit = gem_start_xmit, | ||
2996 | .ndo_get_stats = gem_get_stats, | ||
2997 | .ndo_set_multicast_list = gem_set_multicast, | ||
2998 | .ndo_do_ioctl = gem_ioctl, | ||
2999 | .ndo_tx_timeout = gem_tx_timeout, | ||
3000 | .ndo_change_mtu = gem_change_mtu, | ||
3001 | .ndo_set_mac_address = eth_mac_addr, | ||
3002 | .ndo_validate_addr = eth_validate_addr, | ||
3003 | }; | ||
3004 | |||
2992 | static int __devinit gem_init_one(struct pci_dev *pdev, | 3005 | static int __devinit gem_init_one(struct pci_dev *pdev, |
2993 | const struct pci_device_id *ent) | 3006 | const struct pci_device_id *ent) |
2994 | { | 3007 | { |
@@ -3142,17 +3155,10 @@ static int __devinit gem_init_one(struct pci_dev *pdev, | |||
3142 | if (gem_get_device_address(gp)) | 3155 | if (gem_get_device_address(gp)) |
3143 | goto err_out_free_consistent; | 3156 | goto err_out_free_consistent; |
3144 | 3157 | ||
3145 | dev->open = gem_open; | 3158 | dev->netdev_ops = &gem_netdev_ops; |
3146 | dev->stop = gem_close; | ||
3147 | dev->hard_start_xmit = gem_start_xmit; | ||
3148 | dev->get_stats = gem_get_stats; | ||
3149 | dev->set_multicast_list = gem_set_multicast; | ||
3150 | dev->do_ioctl = gem_ioctl; | ||
3151 | netif_napi_add(dev, &gp->napi, gem_poll, 64); | 3159 | netif_napi_add(dev, &gp->napi, gem_poll, 64); |
3152 | dev->ethtool_ops = &gem_ethtool_ops; | 3160 | dev->ethtool_ops = &gem_ethtool_ops; |
3153 | dev->tx_timeout = gem_tx_timeout; | ||
3154 | dev->watchdog_timeo = 5 * HZ; | 3161 | dev->watchdog_timeo = 5 * HZ; |
3155 | dev->change_mtu = gem_change_mtu; | ||
3156 | dev->irq = pdev->irq; | 3162 | dev->irq = pdev->irq; |
3157 | dev->dma = 0; | 3163 | dev->dma = 0; |
3158 | dev->set_mac_address = gem_set_mac_address; | 3164 | dev->set_mac_address = gem_set_mac_address; |