diff options
author | Vagrant Cascadian <vagrant@debian.org> | 2016-04-30 19:18:00 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-02 18:37:09 -0400 |
commit | eae4b2b67bc8c68e2440616a447ca6c6898ad188 (patch) | |
tree | ae51716b64a81b720d9513c5e33262c0d0a88e57 /cmd/fdc.c | |
parent | 09c2b8f3e39925e5bdff12cb90add09bc9e117d4 (diff) | |
download | u-boot-imx-eae4b2b67bc8c68e2440616a447ca6c6898ad188.zip u-boot-imx-eae4b2b67bc8c68e2440616a447ca6c6898ad188.tar.gz u-boot-imx-eae4b2b67bc8c68e2440616a447ca6c6898ad188.tar.bz2 |
Fix spelling of "occurred".
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/fdc.c')
-rw-r--r-- | cmd/fdc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -189,7 +189,7 @@ int wait_for_fdc_int(void) while((read_fdc_reg(FDC_SRA)&0x80)==0) { timeout--; udelay(10); - if(timeout==0) /* timeout occured */ + if(timeout==0) /* timeout occurred */ return false; } return true; @@ -205,7 +205,7 @@ int read_fdc_byte(void) /* direction out and ready */ udelay(10); timeout--; - if(timeout==0) /* timeout occured */ + if(timeout==0) /* timeout occurred */ return -1; } return read_fdc_reg(FDC_FIFO); @@ -235,7 +235,7 @@ int write_fdc_byte(unsigned char val) timeout--; udelay(10); fdc_need_more_output(); - if(timeout==0) /* timeout occured */ + if(timeout==0) /* timeout occurred */ return false; } write_fdc_reg(FDC_FIFO,val); @@ -395,7 +395,7 @@ int fdc_terminate(FDC_COMMAND_STRUCT *pCMD) int i; for(i=0;i<100;i++) udelay(500); /* wait 500usec for fifo overrun */ - while((read_fdc_reg(FDC_SRA)&0x80)==0x00); /* wait as long as no int has occured */ + while((read_fdc_reg(FDC_SRA)&0x80)==0x00); /* wait as long as no int has occurred */ for(i=0;i<7;i++) { pCMD->result[i]=(unsigned char)read_fdc_byte(); } |