|
@@ -875,18 +875,6 @@ static inline int iwl_trans_d3_resume(struct iwl_trans *trans,
|
|
return trans->ops->d3_resume(trans, status, test, reset);
|
|
return trans->ops->d3_resume(trans, status, test, reset);
|
|
}
|
|
}
|
|
|
|
|
|
-static inline void iwl_trans_ref(struct iwl_trans *trans)
|
|
|
|
-{
|
|
|
|
- if (trans->ops->ref)
|
|
|
|
- trans->ops->ref(trans);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static inline void iwl_trans_unref(struct iwl_trans *trans)
|
|
|
|
-{
|
|
|
|
- if (trans->ops->unref)
|
|
|
|
- trans->ops->unref(trans);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static inline int iwl_trans_suspend(struct iwl_trans *trans)
|
|
static inline int iwl_trans_suspend(struct iwl_trans *trans)
|
|
{
|
|
{
|
|
if (!trans->ops->suspend)
|
|
if (!trans->ops->suspend)
|
|
@@ -1191,6 +1179,8 @@ struct iwl_trans *iwl_trans_alloc(unsigned int priv_size,
|
|
const struct iwl_cfg *cfg,
|
|
const struct iwl_cfg *cfg,
|
|
const struct iwl_trans_ops *ops);
|
|
const struct iwl_trans_ops *ops);
|
|
void iwl_trans_free(struct iwl_trans *trans);
|
|
void iwl_trans_free(struct iwl_trans *trans);
|
|
|
|
+void iwl_trans_ref(struct iwl_trans *trans);
|
|
|
|
+void iwl_trans_unref(struct iwl_trans *trans);
|
|
|
|
|
|
/*****************************************************
|
|
/*****************************************************
|
|
* driver (transport) register/unregister functions
|
|
* driver (transport) register/unregister functions
|