Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224553
b: refs/heads/master
c: d1f9e41
h: refs/heads/master
i:
  224551: 6d16413
v: v3
  • Loading branch information
Brian Cavagnolo authored and John W. Linville committed Nov 16, 2010
1 parent eb25b0b commit 14e6660
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99020471001dbbd6edf61f105368cb6667cc683d
refs/heads/master: d1f9e41d1d739cd4393840d35e7554f4a439a4f1
15 changes: 7 additions & 8 deletions trunk/drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ struct mwl8k_priv {
void __iomem *regs;

/* firmware */
struct firmware *fw_helper;
struct firmware *fw_ucode;
const struct firmware *fw_helper;
const struct firmware *fw_ucode;

/* hardware/firmware parameters */
bool ap_fw;
Expand Down Expand Up @@ -395,7 +395,7 @@ static void mwl8k_hw_reset(struct mwl8k_priv *priv)
}

/* Release fw image */
static void mwl8k_release_fw(struct firmware **fw)
static void mwl8k_release_fw(const struct firmware **fw)
{
if (*fw == NULL)
return;
Expand All @@ -420,7 +420,7 @@ enum {

/* Request fw image */
static int mwl8k_request_fw(struct mwl8k_priv *priv,
const char *fname, struct firmware **fw,
const char *fname, const struct firmware **fw,
bool nowait)
{
/* release current image */
Expand All @@ -432,8 +432,7 @@ static int mwl8k_request_fw(struct mwl8k_priv *priv,
&priv->pdev->dev, GFP_KERNEL,
priv, mwl8k_fw_state_machine);
else
return request_firmware((const struct firmware **)fw,
fname, &priv->pdev->dev);
return request_firmware(fw, fname, &priv->pdev->dev);
}

static int mwl8k_request_firmware(struct mwl8k_priv *priv, char *fw_image,
Expand Down Expand Up @@ -632,12 +631,12 @@ static int mwl8k_feed_fw_image(struct mwl8k_priv *priv,
static int mwl8k_load_firmware(struct ieee80211_hw *hw)
{
struct mwl8k_priv *priv = hw->priv;
struct firmware *fw = priv->fw_ucode;
const struct firmware *fw = priv->fw_ucode;
int rc;
int loops;

if (!memcmp(fw->data, "\x01\x00\x00\x00", 4)) {
struct firmware *helper = priv->fw_helper;
const struct firmware *helper = priv->fw_helper;

if (helper == NULL) {
printk(KERN_ERR "%s: helper image needed but none "
Expand Down

0 comments on commit 14e6660

Please sign in to comment.