diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-03-22 23:59:52 +0200 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-18 07:31:11 -0700 |
commit | 4b9844f5d887e31c18b9aad862b7ef5fde016d9b (patch) | |
tree | 21f48f3381ec9fca18974f8b1261bb44928aef8c /drivers/net/wireless/iwlwifi/iwl-phy-db.c | |
parent | 93faaeea4f28731fa7caf9db870f3f73b6047ea6 (diff) | |
download | op-kernel-dev-4b9844f5d887e31c18b9aad862b7ef5fde016d9b.zip op-kernel-dev-4b9844f5d887e31c18b9aad862b7ef5fde016d9b.tar.gz |
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-phy-db.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-phy-db.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-phy-db.c b/drivers/net/wireless/iwlwifi/iwl-phy-db.c index 1a791af..f166955 100644 --- a/drivers/net/wireless/iwlwifi/iwl-phy-db.c +++ b/drivers/net/wireless/iwlwifi/iwl-phy-db.c @@ -65,14 +65,13 @@ #include <linux/string.h> #include "iwl-debug.h" -#include "iwl-shared.h" #include "iwl-dev.h" #include "iwl-phy-db.h" #define CHANNEL_NUM_SIZE 4 /* num of channels in calib_ch size */ -struct iwl_phy_db *iwl_phy_db_init(struct iwl_shared *shrd) +struct iwl_phy_db *iwl_phy_db_init(struct device *dev) { struct iwl_phy_db *phy_db = kzalloc(sizeof(struct iwl_phy_db), GFP_KERNEL); @@ -80,7 +79,7 @@ struct iwl_phy_db *iwl_phy_db_init(struct iwl_shared *shrd) if (!phy_db) return phy_db; - phy_db->shrd = shrd; + phy_db->dev = dev; /* TODO: add default values of the phy db. */ return phy_db; |