diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /drivers/serial/mpc52xx_uart.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'drivers/serial/mpc52xx_uart.c')
| -rw-r--r-- | drivers/serial/mpc52xx_uart.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index 61dd17d7bace..928e6cf12dca 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c | |||
| @@ -603,15 +603,14 @@ mpc52xx_console_write(struct console *co, const char *s, unsigned int count) | |||
| 603 | udelay(1); | 603 | udelay(1); |
| 604 | 604 | ||
| 605 | /* Write all the chars */ | 605 | /* Write all the chars */ |
| 606 | for ( i=0 ; i<count ; i++ ) { | 606 | for (i = 0; i < count; i++, s++) { |
| 607 | |||
| 608 | /* Send the char */ | ||
| 609 | out_8(&psc->mpc52xx_psc_buffer_8, *s); | ||
| 610 | |||
| 611 | /* Line return handling */ | 607 | /* Line return handling */ |
| 612 | if ( *s++ == '\n' ) | 608 | if (*s == '\n') |
| 613 | out_8(&psc->mpc52xx_psc_buffer_8, '\r'); | 609 | out_8(&psc->mpc52xx_psc_buffer_8, '\r'); |
| 614 | 610 | ||
| 611 | /* Send the char */ | ||
| 612 | out_8(&psc->mpc52xx_psc_buffer_8, *s); | ||
| 613 | |||
| 615 | /* Wait the TX buffer to be empty */ | 614 | /* Wait the TX buffer to be empty */ |
| 616 | j = 20000; /* Maximum wait */ | 615 | j = 20000; /* Maximum wait */ |
| 617 | while (!(in_be16(&psc->mpc52xx_psc_status) & | 616 | while (!(in_be16(&psc->mpc52xx_psc_status) & |
