diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-12-13 14:33:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:14 -0500 |
commit | 23827926eb5ce5cb944ebbd96d22297a2582d45d (patch) | |
tree | fa20f25678f0f6ab5e4f2225988e60beaf5355f4 /drivers/net/wireless | |
parent | ee370ceda823435fe75be7dd4ed7b0e3dc3108b9 (diff) |
libertas: use roundup instead of opencoding
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-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 | ||