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/pc300too.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/pc300too.c')
-rw-r--r-- | drivers/net/wan/pc300too.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wan/pc300too.c b/drivers/net/wan/pc300too.c index 5ab22e529fe1..289c5fe65194 100644 --- a/drivers/net/wan/pc300too.c +++ b/drivers/net/wan/pc300too.c | |||
@@ -78,6 +78,7 @@ typedef struct { | |||
78 | 78 | ||
79 | 79 | ||
80 | typedef struct port_s { | 80 | typedef struct port_s { |
81 | struct napi_struct napi; | ||
81 | struct net_device *dev; | 82 | struct net_device *dev; |
82 | struct card_s *card; | 83 | struct card_s *card; |
83 | spinlock_t lock; /* TX lock */ | 84 | spinlock_t lock; /* TX lock */ |
@@ -481,6 +482,7 @@ static int __devinit pc300_pci_init_one(struct pci_dev *pdev, | |||
481 | else | 482 | else |
482 | port->iface = IF_IFACE_V35; | 483 | port->iface = IF_IFACE_V35; |
483 | 484 | ||
485 | sca_init_port(port); | ||
484 | if (register_hdlc_device(dev)) { | 486 | if (register_hdlc_device(dev)) { |
485 | printk(KERN_ERR "pc300: unable to register hdlc " | 487 | printk(KERN_ERR "pc300: unable to register hdlc " |
486 | "device\n"); | 488 | "device\n"); |
@@ -488,7 +490,6 @@ static int __devinit pc300_pci_init_one(struct pci_dev *pdev, | |||
488 | pc300_pci_remove_one(pdev); | 490 | pc300_pci_remove_one(pdev); |
489 | return -ENOBUFS; | 491 | return -ENOBUFS; |
490 | } | 492 | } |
491 | sca_init_port(port); /* Set up SCA memory */ | ||
492 | 493 | ||
493 | printk(KERN_INFO "%s: PC300 node %d\n", | 494 | printk(KERN_INFO "%s: PC300 node %d\n", |
494 | dev->name, port->phy_node); | 495 | dev->name, port->phy_node); |