diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-03-26 11:51:09 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-18 10:20:06 -0400 |
commit | 9130bab137844d9ad3db6ab524de299cd2b9e39d (patch) | |
tree | 4a2b641fe5cb716540d049f11b35cd1d06d5e993 /drivers/net/wireless/iwlwifi/iwl-drv.h | |
parent | b5abcf0219263f4e961dca71cbe26e06c5b0ee68 (diff) |
iwlwifi: kill shrd->drv, driver points to transport
The driver layer now holds a pointer to the transport,
and shrd->drv is not needed any more, so kill it.
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-drv.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.h b/drivers/net/wireless/iwlwifi/iwl-drv.h index 3b771c1d9096..290a3680ed3e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.h +++ b/drivers/net/wireless/iwlwifi/iwl-drv.h | |||
@@ -90,6 +90,7 @@ | |||
90 | * 8) iwl_ucode_callback starts the wifi implementation to matches the fw | 90 | * 8) iwl_ucode_callback starts the wifi implementation to matches the fw |
91 | */ | 91 | */ |
92 | 92 | ||
93 | struct iwl_drv; | ||
93 | /** | 94 | /** |
94 | * iwl_drv_start - start the drv | 95 | * iwl_drv_start - start the drv |
95 | * | 96 | * |
@@ -102,10 +103,11 @@ | |||
102 | * starts the driver: fetches the firmware. This should be called by bus | 103 | * starts the driver: fetches the firmware. This should be called by bus |
103 | * specific system flows implementations. For example, the bus specific probe | 104 | * specific system flows implementations. For example, the bus specific probe |
104 | * function should do bus related operations only, and then call to this | 105 | * function should do bus related operations only, and then call to this |
105 | * function. | 106 | * function. It returns the driver object or %NULL if an error occured. |
106 | */ | 107 | */ |
107 | int iwl_drv_start(struct iwl_shared *shrd, | 108 | struct iwl_drv *iwl_drv_start(struct iwl_shared *shrd, |
108 | struct iwl_trans *trans, const struct iwl_cfg *cfg); | 109 | struct iwl_trans *trans, |
110 | const struct iwl_cfg *cfg); | ||
109 | 111 | ||
110 | /** | 112 | /** |
111 | * iwl_drv_stop - stop the drv | 113 | * iwl_drv_stop - stop the drv |
@@ -118,6 +120,6 @@ int iwl_drv_start(struct iwl_shared *shrd, | |||
118 | * implementations. For example, the bus specific remove function should first | 120 | * implementations. For example, the bus specific remove function should first |
119 | * call this function and then do the bus related operations only. | 121 | * call this function and then do the bus related operations only. |
120 | */ | 122 | */ |
121 | void iwl_drv_stop(struct iwl_shared *shrd); | 123 | void iwl_drv_stop(struct iwl_drv *drv); |
122 | 124 | ||
123 | #endif /* __iwl_drv_h__ */ | 125 | #endif /* __iwl_drv_h__ */ |