Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136090
b: refs/heads/master
c: 2c7669e
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 27, 2009
1 parent d2c1b41 commit b8a88cd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 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: 968804d9705a014f231eedf82ba9e33810898b68
refs/heads/master: 2c7669e3a9f748dd35743f06cbdaf4340263c3bf
21 changes: 13 additions & 8 deletions trunk/drivers/net/ni52.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,18 @@ struct net_device * __init ni52_probe(int unit)
return ERR_PTR(err);
}

static const struct net_device_ops ni52_netdev_ops = {
.ndo_open = ni52_open,
.ndo_stop = ni52_close,
.ndo_get_stats = ni52_get_stats,
.ndo_tx_timeout = ni52_timeout,
.ndo_start_xmit = ni52_send_packet,
.ndo_set_multicast_list = set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

static int __init ni52_probe1(struct net_device *dev, int ioaddr)
{
int i, size, retval;
Expand Down Expand Up @@ -561,15 +573,8 @@ static int __init ni52_probe1(struct net_device *dev, int ioaddr)
printk("IRQ %d (assigned and not checked!).\n", dev->irq);
}

dev->open = ni52_open;
dev->stop = ni52_close;
dev->get_stats = ni52_get_stats;
dev->tx_timeout = ni52_timeout;
dev->netdev_ops = &ni52_netdev_ops;
dev->watchdog_timeo = HZ/20;
dev->hard_start_xmit = ni52_send_packet;
dev->set_multicast_list = set_multicast_list;

dev->if_port = 0;

return 0;
out:
Expand Down

0 comments on commit b8a88cd

Please sign in to comment.