Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149761
b: refs/heads/master
c: 1ec847f
h: refs/heads/master
i:
  149759: 00c6ac3
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent 6d26f9e commit 63c8a6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e0ac841f42df4e7acdab7dc1620de0933ed56d7
refs/heads/master: 1ec847f6d46f041bb2ae65efc7b00d122b03d212
19 changes: 12 additions & 7 deletions trunk/drivers/net/pci-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,17 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev,
return rc;
}

static const struct net_device_ops netdrv_netdev_ops = {
.ndo_open = netdrv_open,
.ndo_stop = netdrv_close,
.ndo_start_xmit = netdrv_start_xmit,
.ndo_set_multicast_list = netdrv_set_rx_mode,
.ndo_do_ioctl = netdrv_ioctl,
.ndo_tx_timeout = netdrv_tx_timeout,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
};

static int __devinit netdrv_init_one (struct pci_dev *pdev,
const struct pci_device_id *ent)
Expand Down Expand Up @@ -769,13 +780,7 @@ static int __devinit netdrv_init_one (struct pci_dev *pdev,
((u16 *) (dev->dev_addr))[i] =
le16_to_cpu (read_eeprom (ioaddr, i + 7, addr_len));

/* The Rtl8139-specific entries in the device structure. */
dev->open = netdrv_open;
dev->hard_start_xmit = netdrv_start_xmit;
dev->stop = netdrv_close;
dev->set_multicast_list = netdrv_set_rx_mode;
dev->do_ioctl = netdrv_ioctl;
dev->tx_timeout = netdrv_tx_timeout;
dev->netdev_ops = &netdrv_netdev_ops;
dev->watchdog_timeo = TX_TIMEOUT;

dev->irq = pdev->irq;
Expand Down

0 comments on commit 63c8a6f

Please sign in to comment.