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/pc300too.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/pc300too.c')
-rw-r--r-- | drivers/net/wan/pc300too.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wan/pc300too.c b/drivers/net/wan/pc300too.c index f247e5d9002a..60ece54bdd94 100644 --- a/drivers/net/wan/pc300too.c +++ b/drivers/net/wan/pc300too.c | |||
@@ -287,7 +287,13 @@ static void pc300_pci_remove_one(struct pci_dev *pdev) | |||
287 | kfree(card); | 287 | kfree(card); |
288 | } | 288 | } |
289 | 289 | ||
290 | 290 | static const struct net_device_ops pc300_ops = { | |
291 | .ndo_open = pc300_open, | ||
292 | .ndo_stop = pc300_close, | ||
293 | .ndo_change_mtu = hdlc_change_mtu, | ||
294 | .ndo_start_xmit = hdlc_start_xmit, | ||
295 | .ndo_do_ioctl = pc300_ioctl, | ||
296 | }; | ||
291 | 297 | ||
292 | static int __devinit pc300_pci_init_one(struct pci_dev *pdev, | 298 | static int __devinit pc300_pci_init_one(struct pci_dev *pdev, |
293 | const struct pci_device_id *ent) | 299 | const struct pci_device_id *ent) |
@@ -448,9 +454,7 @@ static int __devinit pc300_pci_init_one(struct pci_dev *pdev, | |||
448 | dev->mem_start = ramphys; | 454 | dev->mem_start = ramphys; |
449 | dev->mem_end = ramphys + ramsize - 1; | 455 | dev->mem_end = ramphys + ramsize - 1; |
450 | dev->tx_queue_len = 50; | 456 | dev->tx_queue_len = 50; |
451 | dev->do_ioctl = pc300_ioctl; | 457 | dev->netdev_ops = &pc300_ops; |
452 | dev->open = pc300_open; | ||
453 | dev->stop = pc300_close; | ||
454 | hdlc->attach = sca_attach; | 458 | hdlc->attach = sca_attach; |
455 | hdlc->xmit = sca_xmit; | 459 | hdlc->xmit = sca_xmit; |
456 | port->settings.clock_type = CLOCK_EXT; | 460 | port->settings.clock_type = CLOCK_EXT; |