[PATCH] fixup! mci: imx-esdhc: implement esdhc_poll using sdhci_read32_poll_timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's unlikely that timeout_us would expand to something inducing
breakage here, but better safe than sorry.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>

---
 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 36a2541eb4ce..b259109078e4 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -43,7 +43,7 @@
  */
 #define read_poll_timeout(op, val, cond, timeout_us, args...)	\
 ({ \
-	uint64_t start = timeout_us ? read_poll_get_time_ns() : 0; \
+	uint64_t start = (timeout_us) ? read_poll_get_time_ns() : 0; \
 	for (;;) { \
 		(val) = op(args); \
 		if (cond) \
-- 
2.39.5





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux