aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi/iwl-drv.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach2012-03-22 23:59:52 +0200
committerWey-Yi Guy2012-04-18 07:31:11 -0700
commit4b9844f5d887e31c18b9aad862b7ef5fde016d9b (patch)
tree21f48f3381ec9fca18974f8b1261bb44928aef8c /drivers/net/wireless/iwlwifi/iwl-drv.c
parent93faaeea4f28731fa7caf9db870f3f73b6047ea6 (diff)
iwlwifi: don't use shared for the logger any more
Each modules will hold a pointer to struct device instead. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-drv.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c
index 8270623aff01..1221a8c15a1f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-drv.c
+++ b/drivers/net/wireless/iwlwifi/iwl-drv.c
@@ -80,6 +80,7 @@
* @shrd: pointer to common shared structure
* @op_mode: the running op_mode
* @trans: transport layer
+ * @dev: for debug prints only
* @cfg: configuration struct
* @fw_index: firmware revision to try loading
* @firmware_name: composite filename of ucode file to load
@@ -91,6 +92,7 @@ struct iwl_drv {
struct iwl_shared *shrd;
struct iwl_op_mode *op_mode;
struct iwl_trans *trans;
+ struct device *dev;
const struct iwl_cfg *cfg;
int fw_index; /* firmware we're trying to load */
@@ -898,6 +900,7 @@ struct iwl_drv *iwl_drv_start(struct iwl_shared *shrd,
/* For printing only - temporary until we change the logger */
drv->shrd = shrd;
drv->trans = trans;
+ drv->dev = trans->dev;
drv->cfg = cfg;
init_completion(&drv->request_firmware_complete);