diff options
author | David Kilroy <kilroyd@googlemail.com> | 2009-06-18 23:21:24 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:44 -0400 |
commit | 8e638267a896e171e49fb9013f5baf96a4ede754 (patch) | |
tree | 6bf1dfb8ef9388037b122478c1c649de5c8a5071 /drivers/net/wireless/orinoco/spectrum_cs.c | |
parent | a2608362b22ade22ef5472a8c9b82687d86f976f (diff) | |
download | linux-8e638267a896e171e49fb9013f5baf96a4ede754.tar.gz linux-8e638267a896e171e49fb9013f5baf96a4ede754.tar.bz2 linux-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/spectrum_cs.c')
-rw-r--r-- | drivers/net/wireless/orinoco/spectrum_cs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c index ce909e40329a..43e1aed4e4b2 100644 --- a/drivers/net/wireless/orinoco/spectrum_cs.c +++ b/drivers/net/wireless/orinoco/spectrum_cs.c @@ -368,6 +368,12 @@ spectrum_cs_config(struct pcmcia_device *link) if (spectrum_cs_hard_reset(priv) != 0) goto failed; + /* Initialise the main driver */ + if (orinoco_init(priv) != 0) { + printk(KERN_ERR PFX "orinoco_init() failed\n"); + goto failed; + } + SET_NETDEV_DEV(dev, &handle_to_dev(link)); /* Tell the stack we exist */ if (register_netdev(dev) != 0) { |