iwlwifi: refactor common transport alloc/init code
authorJohannes Berg <johannes.berg@intel.com>
Fri, 22 May 2015 09:28:58 +0000 (11:28 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 28 May 2015 10:32:34 +0000 (13:32 +0300)
commit7b501d10b18bc34cc486201027fd6fc35779fb0e
tree2c59373279a61686c396ed0be38712c658d8242d
parenta54cb6411b96379e107c364f2f0883c47628d046
iwlwifi: refactor common transport alloc/init code

The transport modules all need to allocate memory and set up
certain values. Refactor that code into a new common function
to share it and to simplify the error handling.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/Makefile
drivers/net/wireless/iwlwifi/iwl-trans.c [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl-trans.h
drivers/net/wireless/iwlwifi/pcie/trans.c