Code cleanup for GCC-3.3.x compilers

This commit is contained in:
wdenk
2004-10-17 21:12:06 +00:00
parent 8b74bf31fe
commit e86e5a0748
22 changed files with 969 additions and 998 deletions

View File

@@ -169,6 +169,7 @@ int serial_getc (void)
break;
default:
/* panic, be never here */
break;
}
serial_reg_ch1->status_a |= NETARM_SER_STATA_RX_CLOSED;

View File

@@ -272,7 +272,7 @@ int i2c_probe(uchar chip)
not implemented
*/
printf(__FUNCTION__ " chip %d\n", (int) chip);
printf("i2c_probe chip %d\n", (int) chip);
return -1;
}

View File

@@ -112,7 +112,7 @@ void serial_setbrg (void)
divisor = 121;
#else
# error CONFIG_S3C44B0_CLOCK_SPEED undefined
#endif break;
#endif /* break; */
case 57600:
#if CONFIG_S3C44B0_CLOCK_SPEED==66
@@ -121,7 +121,7 @@ void serial_setbrg (void)
divisor = 80;
#else
# error CONFIG_S3C44B0_CLOCK_SPEED undefined
#endif break;
#endif /* break; */
case 115200:
#if CONFIG_S3C44B0_CLOCK_SPEED==66
@@ -130,7 +130,7 @@ void serial_setbrg (void)
divisor = 40;
#else
# error CONFIG_S3C44B0_CLOCK_SPEED undefined
#endif break;
#endif /* break; */
}
serial_flush_output();