From: Luis R. Rodriguez Date: Mon, 3 Aug 2009 19:24:54 +0000 (-0700) Subject: ath9k: call ath9k_hw_detach() once upon hw init failure X-Git-Tag: v2.6.32-rc1~703^2~459^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95fafca26dc317b7ea0667c57576b0b5389f5bef;p=pandora-kernel.git ath9k: call ath9k_hw_detach() once upon hw init failure If hw initialization fails (ath9k_hw_init()) on ath_init_softc() we bail out and call ath9k_hw_detach(). The call ath9k_hw_detach() is conditional though as ath9k_hw_init() could itself have called ath9k_hw_detach(). Just describing this is itself a brain twister. Avoid this nonsense by removing ath9k_hw_detach() from ath9k_hw_init(). Upon hw initialization failure we expect the callers to take care of the cleanup. Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- Reading git-diff-tree failed