Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121957
b: refs/heads/master
c: fd8f499
h: refs/heads/master
i:
  121955: 18a78b0
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 21, 2008
1 parent c87a0bd commit e04e9db
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 145186a39570244aead77dc2efc559e5cac90548
refs/heads/master: fd8f4997e35f2c9a8bfc4d797ec09a6ae7858e04
17 changes: 10 additions & 7 deletions trunk/drivers/net/defxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,15 @@ static void dfx_get_bars(struct device *bdev,
}
}

static const struct net_device_ops dfx_netdev_ops = {
.ndo_open = dfx_open,
.ndo_stop = dfx_close,
.ndo_start_xmit = dfx_xmt_queue_pkt,
.ndo_get_stats = dfx_ctl_get_stats,
.ndo_set_multicast_list = dfx_ctl_set_multicast_list,
.ndo_set_mac_address = dfx_ctl_set_mac_address,
};

/*
* ================
* = dfx_register =
Expand Down Expand Up @@ -573,13 +582,7 @@ static int __devinit dfx_register(struct device *bdev)
}

/* Initialize new device structure */

dev->get_stats = dfx_ctl_get_stats;
dev->open = dfx_open;
dev->stop = dfx_close;
dev->hard_start_xmit = dfx_xmt_queue_pkt;
dev->set_multicast_list = dfx_ctl_set_multicast_list;
dev->set_mac_address = dfx_ctl_set_mac_address;
dev->netdev_ops = &dfx_netdev_ops;

if (dfx_bus_pci)
pci_set_master(to_pci_dev(bdev));
Expand Down

0 comments on commit e04e9db

Please sign in to comment.