forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hippi: convert driver to net_device_ops
Convert the HIPPI infrastructure for use with net_device_ops. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,16 @@ MODULE_LICENSE("GPL"); | |
|
||
static char version[] __devinitdata = "rrunner.c: v0.50 11/11/2002 Jes Sorensen ([email protected])\n"; | ||
|
||
|
||
static const struct net_device_ops rr_netdev_ops = { | ||
.ndo_open = rr_open, | ||
.ndo_stop = rr_close, | ||
.ndo_do_ioctl = rr_ioctl, | ||
.ndo_start_xmit = rr_start_xmit, | ||
.ndo_change_mtu = hippi_change_mtu, | ||
.ndo_set_mac_address = hippi_mac_addr, | ||
}; | ||
|
||
/* | ||
* Implementation notes: | ||
* | ||
|
@@ -115,10 +125,7 @@ static int __devinit rr_init_one(struct pci_dev *pdev, | |
spin_lock_init(&rrpriv->lock); | ||
|
||
dev->irq = pdev->irq; | ||
dev->open = &rr_open; | ||
dev->hard_start_xmit = &rr_start_xmit; | ||
dev->stop = &rr_close; | ||
dev->do_ioctl = &rr_ioctl; | ||
dev->netdev_ops = &rr_netdev_ops; | ||
|
||
dev->base_addr = pci_resource_start(pdev, 0); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters