diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-01-08 16:52:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:03:37 -0500 |
commit | 991990a12de42281f81b4e3a6471586d2d0caf6a (patch) | |
tree | 7b7ad34cf8218dab2ddd882a87b7c7a687b7d2ee /drivers/net/wan/pci200syn.c | |
parent | dff3fde7be8f08c78914fca3d25e1cffe7625faa (diff) |
WAN: Convert generic HDLC drivers to netdev_ops.
Also remove unneeded last_rx update from Synclink drivers.
Synclink part mostly by Stephen Hemminger.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/pci200syn.c')
-rw-r--r-- | drivers/net/wan/pci200syn.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c index 1104d3a692f7..e035d8c57e11 100644 --- a/drivers/net/wan/pci200syn.c +++ b/drivers/net/wan/pci200syn.c | |||
@@ -265,7 +265,13 @@ static void pci200_pci_remove_one(struct pci_dev *pdev) | |||
265 | kfree(card); | 265 | kfree(card); |
266 | } | 266 | } |
267 | 267 | ||
268 | 268 | static const struct net_device_ops pci200_ops = { | |
269 | .ndo_open = pci200_open, | ||
270 | .ndo_stop = pci200_close, | ||
271 | .ndo_change_mtu = hdlc_change_mtu, | ||
272 | .ndo_start_xmit = hdlc_start_xmit, | ||
273 | .ndo_do_ioctl = pci200_ioctl, | ||
274 | }; | ||
269 | 275 | ||
270 | static int __devinit pci200_pci_init_one(struct pci_dev *pdev, | 276 | static int __devinit pci200_pci_init_one(struct pci_dev *pdev, |
271 | const struct pci_device_id *ent) | 277 | const struct pci_device_id *ent) |
@@ -395,9 +401,7 @@ static int __devinit pci200_pci_init_one(struct pci_dev *pdev, | |||
395 | dev->mem_start = ramphys; | 401 | dev->mem_start = ramphys; |
396 | dev->mem_end = ramphys + ramsize - 1; | 402 | dev->mem_end = ramphys + ramsize - 1; |
397 | dev->tx_queue_len = 50; | 403 | dev->tx_queue_len = 50; |
398 | dev->do_ioctl = pci200_ioctl; | 404 | dev->netdev_ops = &pci200_ops; |
399 | dev->open = pci200_open; | ||
400 | dev->stop = pci200_close; | ||
401 | hdlc->attach = sca_attach; | 405 | hdlc->attach = sca_attach; |
402 | hdlc->xmit = sca_xmit; | 406 | hdlc->xmit = sca_xmit; |
403 | port->settings.clock_type = CLOCK_EXT; | 407 | port->settings.clock_type = CLOCK_EXT; |