]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: iwl-trans.h doesn't need all these includes
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 16 Feb 2012 07:47:01 +0000 (09:47 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 27 Feb 2012 21:56:55 +0000 (13:56 -0800)
We can use forward declaration for the relevant struct since they
aren't dereferenced in the header file.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
drivers/net/wireless/iwlwifi/iwl-trans.h

index ca0fa9c8e89ca2b61361db5ef284befaec3fc4a9..9f8b239094041c02018ccc96bf09f2cdd42a9f56 100644 (file)
@@ -76,6 +76,7 @@
 #include "iwl-eeprom.h"
 #include "iwl-agn-hw.h"
 #include "iwl-core.h"
+#include "iwl-ucode.h"
 
 static int iwl_trans_rx_alloc(struct iwl_trans *trans)
 {
index 08d93b9c94e9c60e63660cf5f1a2de875970953a..4e7e6c0eede930ee53ab3e39559383905a3d2d42 100644 (file)
 #ifndef __iwl_trans_h__
 #define __iwl_trans_h__
 
-#include <linux/debugfs.h>
-#include <linux/skbuff.h>
+#include <linux/ieee80211.h>
 
 #include "iwl-shared.h"
-#include "iwl-commands.h"
-#include "iwl-ucode.h"
 #include "iwl-debug.h"
 
 /**
 struct iwl_priv;
 struct iwl_shared;
 struct iwl_op_mode;
+struct fw_img;
+struct sk_buff;
+struct dentry;
 
 /**
  * DOC: Host command section