iwlwifi: trans: turn set_pmi into an optional callback
authorArik Nemtsov <arik@wizery.com>
Thu, 5 Dec 2013 16:31:45 +0000 (18:31 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 17 Dec 2013 17:39:52 +0000 (19:39 +0200)
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>
drivers/net/wireless/iwlwifi/iwl-trans.h

index 8aaabdb1e4a7a0d203073460513d330f4eb23ef0..0c3647858909dc53ce1697072cce6d9947808633 100644 (file)
@@ -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