diff options
Diffstat (limited to 'drivers/net/wireless/orinoco/fw.c')
| -rw-r--r-- | drivers/net/wireless/orinoco/fw.c | 15 | 
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/wireless/orinoco/fw.c b/drivers/net/wireless/orinoco/fw.c index 259d7585398..400a3521764 100644 --- a/drivers/net/wireless/orinoco/fw.c +++ b/drivers/net/wireless/orinoco/fw.c @@ -6,6 +6,7 @@  #include <linux/slab.h>  #include <linux/firmware.h>  #include <linux/device.h> +#include <linux/module.h>  #include "hermes.h"  #include "hermes_dld.h" @@ -100,7 +101,7 @@ orinoco_dl_firmware(struct orinoco_private *priv,  	/* Plug Data Area (PDA) */  	__le16 *pda; -	hermes_t *hw = &priv->hw; +	struct hermes *hw = &priv->hw;  	const struct firmware *fw_entry;  	const struct orinoco_fw_header *hdr;  	const unsigned char *first_block; @@ -205,7 +206,7 @@ symbol_dl_image(struct orinoco_private *priv, const struct fw_info *fw,  		const unsigned char *image, const void *end,  		int secondary)  { -	hermes_t *hw = &priv->hw; +	struct hermes *hw = &priv->hw;  	int ret = 0;  	const unsigned char *ptr;  	const unsigned char *first_block; @@ -322,9 +323,8 @@ symbol_dl_firmware(struct orinoco_private *priv,  			      fw_entry->data + fw_entry->size, 1);  	if (!orinoco_cached_fw_get(priv, false))  		release_firmware(fw_entry); -	if (ret) { +	if (ret)  		dev_err(dev, "Secondary firmware download failed\n"); -	}  	return ret;  } @@ -379,11 +379,8 @@ void orinoco_cache_fw(struct orinoco_private *priv, int ap)  void orinoco_uncache_fw(struct orinoco_private *priv)  { -	if (priv->cached_pri_fw) -		release_firmware(priv->cached_pri_fw); -	if (priv->cached_fw) -		release_firmware(priv->cached_fw); - +	release_firmware(priv->cached_pri_fw); +	release_firmware(priv->cached_fw);  	priv->cached_pri_fw = NULL;  	priv->cached_fw = NULL;  }  | 
