ath5k: allocate ath5k_hw prior to initializing hw
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 11 Sep 2009 01:04:47 +0000 (18:04 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:28 +0000 (16:39 -0400)
commit9adca126dbf4bf099bc7051deb6b566725a046dc
treede3eaed32a5d460b50cf4f0d465a4384eb2ba551
parent9e4bffd233f27fe83fc48efb01935aee7d0685bf
ath5k: allocate ath5k_hw prior to initializing hw

We can propagate better errors upon failed hw initialization,
and set up the ath_common structure for attach purposes. This
will become important once we start using the ath_common
for read/write ops.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/attach.c
drivers/net/wireless/ath/ath5k/base.c