diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 1610a7308c1d..815c095ef797 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -376,7 +376,8 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) | |||
376 | const struct firmware *fw_entry = NULL; | 376 | const struct firmware *fw_entry = NULL; |
377 | int err, alen; | 377 | int err, alen; |
378 | u8 carry = 0; | 378 | u8 carry = 0; |
379 | u8 *buf, *tmp, *data; | 379 | u8 *buf, *tmp; |
380 | const u8 *data; | ||
380 | unsigned int left, remains, block_size; | 381 | unsigned int left, remains, block_size; |
381 | struct x2_header *hdr; | 382 | struct x2_header *hdr; |
382 | unsigned long timeout; | 383 | unsigned long timeout; |
@@ -523,7 +524,7 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev) | |||
523 | void *buf; | 524 | void *buf; |
524 | __le32 reg; | 525 | __le32 reg; |
525 | unsigned int remains, offset; | 526 | unsigned int remains, offset; |
526 | u8 *data; | 527 | const u8 *data; |
527 | 528 | ||
528 | buf = kmalloc(512, GFP_KERNEL); | 529 | buf = kmalloc(512, GFP_KERNEL); |
529 | if (!buf) { | 530 | if (!buf) { |