From: Nicholas Mc Guire Date: Mon, 2 Feb 2015 08:30:32 +0000 (-0500) Subject: spi: match var type to return type of wait_for_completion X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=682a71b28406a53bdc05c4c0d48443af72f1298e;p=deliverable%2Flinux.git spi: match var type to return type of wait_for_completion return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of m from int to unsigned long. Signed-off-by: Nicholas Mc Guire Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 66a70e9bc743..ba17929102ae 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -788,7 +788,7 @@ static int spi_transfer_one_message(struct spi_master *master, struct spi_transfer *xfer; bool keep_cs = false; int ret = 0; - int ms = 1; + unsigned long ms = 1; spi_set_cs(msg->spi, true);