Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143439
b: refs/heads/master
c: 7e4fdcb
h: refs/heads/master
i:
  143437: f91ee09
  143435: c03e64c
  143431: 1af3ad9
  143423: c732cb3
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 13, 2009
1 parent 6143986 commit d7b9548
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 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: 5a1c28b3e4aa0ac755d73363fd1c84c0063c06be
refs/heads/master: 7e4fdcb99cd578c800fb7d6c298950a2938f9ca6
19 changes: 13 additions & 6 deletions trunk/drivers/net/sun3_82586.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,18 @@ struct net_device * __init sun3_82586_probe(int unit)
return ERR_PTR(err);
}

static const struct net_device_ops sun3_82586_netdev_ops = {
.ndo_open = sun3_82586_open,
.ndo_stop = sun3_82586_close,
.ndo_start_xmit = sun3_82586_send_packet,
.ndo_set_multicast_list = set_multicast_list,
.ndo_tx_timeout = sun3_82586_timeout,
.ndo_get_stats = sun3_82586_get_stats,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
.ndo_change_mtu = eth_change_mtu,
};

static int __init sun3_82586_probe1(struct net_device *dev,int ioaddr)
{
int i, size, retval;
Expand Down Expand Up @@ -381,13 +393,8 @@ static int __init sun3_82586_probe1(struct net_device *dev,int ioaddr)

printk("Memaddr: 0x%lx, Memsize: %d, IRQ %d\n",dev->mem_start,size, dev->irq);

dev->open = sun3_82586_open;
dev->stop = sun3_82586_close;
dev->get_stats = sun3_82586_get_stats;
dev->tx_timeout = sun3_82586_timeout;
dev->netdev_ops = &sun3_82586_netdev_ops;
dev->watchdog_timeo = HZ/20;
dev->hard_start_xmit = sun3_82586_send_packet;
dev->set_multicast_list = set_multicast_list;

dev->if_port = 0;
return 0;
Expand Down

0 comments on commit d7b9548

Please sign in to comment.