]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rtc-nuc900: fix loop timeout test
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Jun 2017 08:29:00 +0000 (11:29 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 20:37:16 +0000 (22:37 +0200)
commit1007932da54c247e57e23fc68e7a0068c0d77b6a
tree09eb3d616ebd7c542a41fe2cd0b814f118e03f4e
parent1d5b954da21669594a93d7384017d3b1525f9e27
rtc: rtc-nuc900: fix loop timeout test

We should change this post-op to a pre-op because we want the loop to
exit with "timeout" set to zero.

Fixes: 83560b350606 ("nuc900/rtc: change the waiting for device ready implement")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-nuc900.c