diff options
-rw-r--r-- | drivers/net/wireless/libertas/if_sdio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index b54e2ea8346b..4519d7314f47 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c | |||
@@ -26,6 +26,7 @@ | |||
26 | * if_sdio_card_to_host() to pad the data. | 26 | * if_sdio_card_to_host() to pad the data. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include <linux/kernel.h> | ||
29 | #include <linux/moduleparam.h> | 30 | #include <linux/moduleparam.h> |
30 | #include <linux/firmware.h> | 31 | #include <linux/firmware.h> |
31 | #include <linux/netdevice.h> | 32 | #include <linux/netdevice.h> |
@@ -581,7 +582,7 @@ static int if_sdio_prog_real(struct if_sdio_card *card) | |||
581 | chunk_size, (chunk_size + 31) / 32 * 32); | 582 | chunk_size, (chunk_size + 31) / 32 * 32); |
582 | */ | 583 | */ |
583 | ret = sdio_writesb(card->func, card->ioport, | 584 | ret = sdio_writesb(card->func, card->ioport, |
584 | chunk_buffer, (chunk_size + 31) / 32 * 32); | 585 | chunk_buffer, roundup(chunk_size, 32)); |
585 | if (ret) | 586 | if (ret) |
586 | goto release; | 587 | goto release; |
587 | 588 | ||