diff options
Diffstat (limited to 'drivers/mmc/host/tifm_sd.c')
-rw-r--r-- | drivers/mmc/host/tifm_sd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/tifm_sd.c b/drivers/mmc/host/tifm_sd.c index 951392d2ce37..9b904795eb77 100644 --- a/drivers/mmc/host/tifm_sd.c +++ b/drivers/mmc/host/tifm_sd.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/mmc/host.h> | 16 | #include <linux/mmc/host.h> |
17 | #include <linux/highmem.h> | 17 | #include <linux/highmem.h> |
18 | #include <linux/scatterlist.h> | 18 | #include <linux/scatterlist.h> |
19 | #include <linux/log2.h> | ||
19 | #include <asm/io.h> | 20 | #include <asm/io.h> |
20 | 21 | ||
21 | #define DRIVER_NAME "tifm_sd" | 22 | #define DRIVER_NAME "tifm_sd" |
@@ -637,7 +638,7 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) | |||
637 | goto err_out; | 638 | goto err_out; |
638 | } | 639 | } |
639 | 640 | ||
640 | if (mrq->data && (hweight32(mrq->data->blksz) > 1)) { | 641 | if (mrq->data && !is_power_of_2(mrq->data->blksz)) { |
641 | printk(KERN_ERR "%s: Unsupported block size (%d bytes)\n", | 642 | printk(KERN_ERR "%s: Unsupported block size (%d bytes)\n", |
642 | sock->dev.bus_id, mrq->data->blksz); | 643 | sock->dev.bus_id, mrq->data->blksz); |
643 | mrq->cmd->error = -EINVAL; | 644 | mrq->cmd->error = -EINVAL; |