diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-07-09 10:49:37 -0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-11-21 20:49:47 -0500 |
commit | abc9d91a35a924c8db0e949cd443471672e37cdb (patch) | |
tree | 28b0186211e46b4fc731ebb34854d2b6a30d2283 /drivers/net/wan/pci200syn.c | |
parent | 302243922b374b147380f61774b44612eb2040fd (diff) |
WAN: convert HD64572-based drivers to NAPI.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/wan/pci200syn.c')
-rw-r--r-- | drivers/net/wan/pci200syn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c index c2620beb7f75..bfcf4f67b4c0 100644 --- a/drivers/net/wan/pci200syn.c +++ b/drivers/net/wan/pci200syn.c | |||
@@ -65,6 +65,7 @@ typedef struct { | |||
65 | 65 | ||
66 | 66 | ||
67 | typedef struct port_s { | 67 | typedef struct port_s { |
68 | struct napi_struct napi; | ||
68 | struct net_device *dev; | 69 | struct net_device *dev; |
69 | struct card_s *card; | 70 | struct card_s *card; |
70 | spinlock_t lock; /* TX lock */ | 71 | spinlock_t lock; /* TX lock */ |
@@ -423,6 +424,7 @@ static int __devinit pci200_pci_init_one(struct pci_dev *pdev, | |||
423 | hdlc->xmit = sca_xmit; | 424 | hdlc->xmit = sca_xmit; |
424 | port->settings.clock_type = CLOCK_EXT; | 425 | port->settings.clock_type = CLOCK_EXT; |
425 | port->card = card; | 426 | port->card = card; |
427 | sca_init_port(port); | ||
426 | if (register_hdlc_device(dev)) { | 428 | if (register_hdlc_device(dev)) { |
427 | printk(KERN_ERR "pci200syn: unable to register hdlc " | 429 | printk(KERN_ERR "pci200syn: unable to register hdlc " |
428 | "device\n"); | 430 | "device\n"); |
@@ -430,7 +432,6 @@ static int __devinit pci200_pci_init_one(struct pci_dev *pdev, | |||
430 | pci200_pci_remove_one(pdev); | 432 | pci200_pci_remove_one(pdev); |
431 | return -ENOBUFS; | 433 | return -ENOBUFS; |
432 | } | 434 | } |
433 | sca_init_port(port); /* Set up SCA memory */ | ||
434 | 435 | ||
435 | printk(KERN_INFO "%s: PCI200SYN node %d\n", | 436 | printk(KERN_INFO "%s: PCI200SYN node %d\n", |
436 | dev->name, port->phy_node); | 437 | dev->name, port->phy_node); |