diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-12-13 21:33:13 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:14 -0500 |
commit | 23827926eb5ce5cb944ebbd96d22297a2582d45d (patch) | |
tree | fa20f25678f0f6ab5e4f2225988e60beaf5355f4 | |
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>
-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 b54e2ea8346..4519d7314f4 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c @@ -26,6 +26,7 @@ * if_sdio_card_to_host() to pad the data. */ +#include <linux/kernel.h> #include <linux/moduleparam.h> #include <linux/firmware.h> #include <linux/netdevice.h> @@ -581,7 +582,7 @@ static int if_sdio_prog_real(struct if_sdio_card *card) chunk_size, (chunk_size + 31) / 32 * 32); */ ret = sdio_writesb(card->func, card->ioport, - chunk_buffer, (chunk_size + 31) / 32 * 32); + chunk_buffer, roundup(chunk_size, 32)); if (ret) goto release; |