mmc: moxart: fix wait_for_completion_interruptible_timeout return variable type
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 25 Jul 2016 17:59:23 +0000 (19:59 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:07 +0000 (21:31 +0200)
wait_for_completion_timeout_interruptible returns long not unsigned long
so dma_time, which is used exclusively here, is changed to long.

Fixes: 1b66e94e6b99 ("mmc: moxart: Add MOXA ART SD/MMC driver")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/moxart-mmc.c

index 79905ce895adaeffc6f8e07689af768398b272c1..bbad309679cf87b30f13969f7d2d2059fea1a07e 100644 (file)
@@ -257,7 +257,7 @@ static void moxart_dma_complete(void *param)
 static void moxart_transfer_dma(struct mmc_data *data, struct moxart_host *host)
 {
        u32 len, dir_data, dir_slave;
-       unsigned long dma_time;
+       long dma_time;
        struct dma_async_tx_descriptor *desc = NULL;
        struct dma_chan *dma_chan;
 
@@ -397,7 +397,8 @@ static void moxart_prepare_data(struct moxart_host *host)
 static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq)
 {
        struct moxart_host *host = mmc_priv(mmc);
-       unsigned long pio_time, flags;
+       long pio_time;
+       unsigned long flags;
        u32 status;
 
        spin_lock_irqsave(&host->lock, flags);