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/epic100.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/epic100.c')
-rw-r--r-- | drivers/net/epic100.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c index f9b37c80dda6..a539bc3163cf 100644 --- a/drivers/net/epic100.c +++ b/drivers/net/epic100.c | |||
@@ -308,7 +308,18 @@ static int epic_close(struct net_device *dev); | |||
308 | static struct net_device_stats *epic_get_stats(struct net_device *dev); | 308 | static struct net_device_stats *epic_get_stats(struct net_device *dev); |
309 | static void set_rx_mode(struct net_device *dev); | 309 | static void set_rx_mode(struct net_device *dev); |
310 | 310 | ||
311 | 311 | static const struct net_device_ops epic_netdev_ops = { | |
312 | .ndo_open = epic_open, | ||
313 | .ndo_stop = epic_close, | ||
314 | .ndo_start_xmit = epic_start_xmit, | ||
315 | .ndo_tx_timeout = epic_tx_timeout, | ||
316 | .ndo_get_stats = epic_get_stats, | ||
317 | .ndo_set_multicast_list = set_rx_mode, | ||
318 | .ndo_do_ioctl = netdev_ioctl, | ||
319 | .ndo_change_mtu = eth_change_mtu, | ||
320 | .ndo_set_mac_address = eth_mac_addr, | ||
321 | .ndo_validate_addr = eth_validate_addr, | ||
322 | }; | ||
312 | 323 | ||
313 | static int __devinit epic_init_one (struct pci_dev *pdev, | 324 | static int __devinit epic_init_one (struct pci_dev *pdev, |
314 | const struct pci_device_id *ent) | 325 | const struct pci_device_id *ent) |
@@ -483,15 +494,9 @@ static int __devinit epic_init_one (struct pci_dev *pdev, | |||
483 | dev->if_port = ep->default_port = option; | 494 | dev->if_port = ep->default_port = option; |
484 | 495 | ||
485 | /* The Epic-specific entries in the device structure. */ | 496 | /* The Epic-specific entries in the device structure. */ |
486 | dev->open = &epic_open; | 497 | dev->netdev_ops = &epic_netdev_ops; |
487 | dev->hard_start_xmit = &epic_start_xmit; | ||
488 | dev->stop = &epic_close; | ||
489 | dev->get_stats = &epic_get_stats; | ||
490 | dev->set_multicast_list = &set_rx_mode; | ||
491 | dev->do_ioctl = &netdev_ioctl; | ||
492 | dev->ethtool_ops = &netdev_ethtool_ops; | 498 | dev->ethtool_ops = &netdev_ethtool_ops; |
493 | dev->watchdog_timeo = TX_TIMEOUT; | 499 | dev->watchdog_timeo = TX_TIMEOUT; |
494 | dev->tx_timeout = &epic_tx_timeout; | ||
495 | netif_napi_add(dev, &ep->napi, epic_poll, 64); | 500 | netif_napi_add(dev, &ep->napi, epic_poll, 64); |
496 | 501 | ||
497 | ret = register_netdev(dev); | 502 | ret = register_netdev(dev); |