Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157117
b: refs/heads/master
c: dd9b3e8
h: refs/heads/master
i:
  157115: 4d19cdf
v: v3
  • Loading branch information
Roel Kluin authored and Geert Uytterhoeven committed Aug 26, 2009
1 parent da5d0f0 commit 6c75272
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dac9ff79a8122b30176e23359bb879b3144d7f1f
refs/heads/master: dd9b3e84f2095ed19582f4df5d20e1e40c01ca3c
6 changes: 4 additions & 2 deletions trunk/arch/m68k/amiga/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,11 @@ static int a2000_hwclk(int op, struct rtc_time *t)

tod_2000.cntrl1 = TOD2000_CNTRL1_HOLD;

while ((tod_2000.cntrl1 & TOD2000_CNTRL1_BUSY) && cnt--) {
while ((tod_2000.cntrl1 & TOD2000_CNTRL1_BUSY) && cnt) {
tod_2000.cntrl1 &= ~TOD2000_CNTRL1_HOLD;
udelay(70);
tod_2000.cntrl1 |= TOD2000_CNTRL1_HOLD;
--cnt;
}

if (!cnt)
Expand Down Expand Up @@ -649,10 +650,11 @@ static int amiga_set_clock_mmss(unsigned long nowtime)

tod_2000.cntrl1 |= TOD2000_CNTRL1_HOLD;

while ((tod_2000.cntrl1 & TOD2000_CNTRL1_BUSY) && cnt--) {
while ((tod_2000.cntrl1 & TOD2000_CNTRL1_BUSY) && cnt) {
tod_2000.cntrl1 &= ~TOD2000_CNTRL1_HOLD;
udelay(70);
tod_2000.cntrl1 |= TOD2000_CNTRL1_HOLD;
--cnt;
}

if (!cnt)
Expand Down

0 comments on commit 6c75272

Please sign in to comment.