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>
This commit is contained in:

committed by
John W. Linville

parent
9e4bffd233
commit
9adca126db
@@ -1147,7 +1147,7 @@ struct ath5k_hw {
|
||||
*/
|
||||
|
||||
/* Attach/Detach Functions */
|
||||
extern struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc);
|
||||
extern int ath5k_hw_attach(struct ath5k_softc *sc);
|
||||
extern void ath5k_hw_detach(struct ath5k_hw *ah);
|
||||
|
||||
/* LED functions */
|
||||
|
Reference in New Issue
Block a user