diff options
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 829283e785d9..c74ee87b243b 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c | |||
@@ -283,7 +283,7 @@ static unsigned tegra_slink_calculate_curr_xfer_param( | |||
283 | unsigned total_fifo_words; | 283 | unsigned total_fifo_words; |
284 | 284 | ||
285 | bits_per_word = t->bits_per_word; | 285 | bits_per_word = t->bits_per_word; |
286 | tspi->bytes_per_word = (bits_per_word - 1) / 8 + 1; | 286 | tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); |
287 | 287 | ||
288 | if (bits_per_word == 8 || bits_per_word == 16) { | 288 | if (bits_per_word == 8 || bits_per_word == 16) { |
289 | tspi->is_packed = 1; | 289 | tspi->is_packed = 1; |