Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122235
b: refs/heads/master
c: d079841
h: refs/heads/master
i:
  122233: 516581f
  122231: 1bf4889
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 26, 2008
1 parent f66bfdd commit 56a35a5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 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: d4a97d425c2f59849ebdcc94281ecf108818efbf
refs/heads/master: d079841d795b83822357ef058ce8d7979dad854c
22 changes: 17 additions & 5 deletions trunk/drivers/net/smc-mca.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,22 @@ static char *smc_mca_adapter_names[] __initdata = {

static int ultra_found = 0;


static const struct net_device_ops ultra_netdev_ops = {
.ndo_open = ultramca_open,
.ndo_stop = ultramca_close_card,

.ndo_start_xmit = ei_start_xmit,
.ndo_tx_timeout = ei_tx_timeout,
.ndo_get_stats = ei_get_stats,
.ndo_set_multicast_list = ei_set_multicast_list,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = ei_poll,
#endif
};

static int __init ultramca_probe(struct device *gen_dev)
{
unsigned short ioaddr;
Expand Down Expand Up @@ -384,11 +400,7 @@ static int __init ultramca_probe(struct device *gen_dev)

ei_status.priv = slot;

dev->open = &ultramca_open;
dev->stop = &ultramca_close_card;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = ei_poll;
#endif
dev->netdev_ops = &ultramca_netdev_ops;

NS8390_init(dev, 0);

Expand Down
22 changes: 17 additions & 5 deletions trunk/drivers/net/smc-ultra.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,21 @@ struct net_device * __init ultra_probe(int unit)
}
#endif

static const struct net_device_ops ultra_netdev_ops = {
.ndo_open = ultra_open,
.ndo_stop = ultra_close_card,

.ndo_start_xmit = ei_start_xmit,
.ndo_tx_timeout = ei_tx_timeout,
.ndo_get_stats = ei_get_stats,
.ndo_set_multicast_list = ei_set_multicast_list,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = ei_poll,
#endif
};

static int __init ultra_probe1(struct net_device *dev, int ioaddr)
{
int i, retval;
Expand Down Expand Up @@ -300,11 +315,8 @@ static int __init ultra_probe1(struct net_device *dev, int ioaddr)
ei_status.get_8390_hdr = &ultra_get_8390_hdr;
}
ei_status.reset_8390 = &ultra_reset_8390;
dev->open = &ultra_open;
dev->stop = &ultra_close_card;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = ei_poll;
#endif

dev->netdev_ops = &ultra_netdev_ops;
NS8390_init(dev, 0);

retval = register_netdev(dev);
Expand Down

0 comments on commit 56a35a5

Please sign in to comment.