diff options
| author | 2009-06-18 23:21:24 +0100 | |
|---|---|---|
| committer | 2009-07-10 15:01:44 -0400 | |
| commit | 8e638267a896e171e49fb9013f5baf96a4ede754 (patch) | |
| tree | 6bf1dfb8ef9388037b122478c1c649de5c8a5071 /drivers/net/wireless/orinoco/orinoco_plx.c | |
| parent | orinoco: Replace net_device with orinoco_private in driver interfaces (diff) | |
| download | linux-dev-8e638267a896e171e49fb9013f5baf96a4ede754.tar.xz linux-dev-8e638267a896e171e49fb9013f5baf96a4ede754.zip | |
orinoco: initialise independently of netdev
Initialise the orinoco driver before registerring with netdev, which
will help when we get to cfg80211...
Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco_plx.c')
| -rw-r--r-- | drivers/net/wireless/orinoco/orinoco_plx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_plx.c b/drivers/net/wireless/orinoco/orinoco_plx.c index 77d5668a9e43..8f225d064a7b 100644 --- a/drivers/net/wireless/orinoco/orinoco_plx.c +++ b/drivers/net/wireless/orinoco/orinoco_plx.c @@ -256,6 +256,12 @@ static int orinoco_plx_init_one(struct pci_dev *pdev, goto fail; } + err = orinoco_init(priv); + if (err) { + printk(KERN_ERR PFX "orinoco_init() failed\n"); + goto fail; + } + err = register_netdev(dev); if (err) { printk(KERN_ERR PFX "Cannot register network device\n"); |
