]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pic32-sqi: fixup wait_for_completion_timeout return handling
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 23 Jul 2016 19:08:35 +0000 (21:08 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 24 Jul 2016 20:49:57 +0000 (21:49 +0100)
commitae20ffad486b3c57c16c062997d97152e43f7b64
tree3d178322f9ae6289d056351e97605f013204d6fc
parent8ca3363f922cee4e866abd83e3e86c73c4910fed
spi: pic32-sqi: fixup wait_for_completion_timeout return handling

wait_for_completion_timeout returns unsigned long not int so the check for
<= 0 should be == 0 here, and the type unsigned long. The function return
is set to -ETIMEDOUT to reflect the actual problem.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pic32-sqi.c