projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efbf6e3
)
iwlwifi: trans: turn set_pmi into an optional callback
author
Arik Nemtsov
<
[email protected]
>
Thu, 5 Dec 2013 16:31:45 +0000
(18:31 +0200)
committer
Emmanuel Grumbach
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
drivers/net/wireless/iwlwifi/iwl-trans.h
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-trans.h
b/drivers/net/wireless/iwlwifi/iwl-trans.h
index 8aaabdb1e4a7a0d203073460513d330f4eb23ef0..0c3647858909dc53ce1697072cce6d9947808633 100644
(file)
--- 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