summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2013-12-05 18:31:45 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-12-17 19:39:52 +0200
commit128cb89e1d18c8f9d1dc82446a4c3003ca0b6f7e (patch)
treeb8699a35e7e4c5aa34fc2da9617a3d0e8019d770 /drivers/net/wireless/iwlwifi/iwl-trans.h
parentefbf6e3ba2ad2e0f7965ff78779ea4eea7b871e8 (diff)
downloadtalos-obmc-linux-128cb89e1d18c8f9d1dc82446a4c3003ca0b6f7e.tar.gz
talos-obmc-linux-128cb89e1d18c8f9d1dc82446a4c3003ca0b6f7e.zip
iwlwifi: trans: turn set_pmi into an optional callback
It is not currently implemented for SDIO, and not required for other slave buses as well. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h
index 8aaabdb1e4a7..0c3647858909 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.h
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.h
@@ -787,7 +787,8 @@ static inline u32 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr,
static inline void iwl_trans_set_pmi(struct iwl_trans *trans, bool state)
{
- trans->ops->set_pmi(trans, state);
+ if (trans->ops->set_pmi)
+ trans->ops->set_pmi(trans, state);
}
static inline void
OpenPOWER on IntegriCloud