Skip to content

Commit 5ed0102

Browse files
Stephen Hemmingerdavem330
authored andcommitted
sungem: missing net_device_ops
Sungem driver only got partially converted to net_device_ops. Since this could cause bugs, please push this to 2.6.29 Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1ab1ab7 commit 5ed0102

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎drivers/net/sungem.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,8 +2998,11 @@ static const struct net_device_ops gem_netdev_ops = {
29982998
.ndo_do_ioctl = gem_ioctl,
29992999
.ndo_tx_timeout = gem_tx_timeout,
30003000
.ndo_change_mtu = gem_change_mtu,
3001-
.ndo_set_mac_address = eth_mac_addr,
30023001
.ndo_validate_addr = eth_validate_addr,
3002+
.ndo_set_mac_address = gem_set_mac_address,
3003+
#ifdef CONFIG_NET_POLL_CONTROLLER
3004+
.ndo_poll_controller = gem_poll_controller,
3005+
#endif
30033006
};
30043007

30053008
static int __devinit gem_init_one(struct pci_dev *pdev,
@@ -3161,10 +3164,6 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
31613164
dev->watchdog_timeo = 5 * HZ;
31623165
dev->irq = pdev->irq;
31633166
dev->dma = 0;
3164-
dev->set_mac_address = gem_set_mac_address;
3165-
#ifdef CONFIG_NET_POLL_CONTROLLER
3166-
dev->poll_controller = gem_poll_controller;
3167-
#endif
31683167

31693168
/* Set that now, in case PM kicks in now */
31703169
pci_set_drvdata(pdev, dev);

0 commit comments

Comments
 (0)