mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 13:14:19 +08:00
More GCC 4.x code cleanup
This commit is contained in:
parent
d52fb7e3d1
commit
8de7ed3abe
@ -256,8 +256,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int write_word (flash_info_t * info, ulong dest, ulong data)
|
||||||
volatile static int write_word (flash_info_t * info, ulong dest, ulong data)
|
|
||||||
{
|
{
|
||||||
volatile u16 *addr = (volatile u16 *) dest;
|
volatile u16 *addr = (volatile u16 *) dest;
|
||||||
ulong result;
|
ulong result;
|
||||||
|
@ -256,8 +256,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int write_word (flash_info_t * info, ulong dest, ulong data)
|
||||||
volatile static int write_word (flash_info_t * info, ulong dest, ulong data)
|
|
||||||
{
|
{
|
||||||
volatile u16 *addr = (volatile u16 *) dest;
|
volatile u16 *addr = (volatile u16 *) dest;
|
||||||
ulong result;
|
ulong result;
|
||||||
|
@ -256,8 +256,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int write_word (flash_info_t * info, ulong dest, ulong data)
|
||||||
volatile static int write_word (flash_info_t * info, ulong dest, ulong data)
|
|
||||||
{
|
{
|
||||||
volatile u16 *addr = (volatile u16 *) dest;
|
volatile u16 *addr = (volatile u16 *) dest;
|
||||||
ulong result;
|
ulong result;
|
||||||
|
@ -353,8 +353,7 @@ outahere:
|
|||||||
* Copy memory to flash
|
* Copy memory to flash
|
||||||
*/
|
*/
|
||||||
|
|
||||||
volatile static int write_word (flash_info_t * info, ulong dest,
|
static int write_word (flash_info_t * info, ulong dest, ulong data)
|
||||||
ulong data)
|
|
||||||
{
|
{
|
||||||
vu_long *addr = (vu_long *) dest;
|
vu_long *addr = (vu_long *) dest;
|
||||||
ulong result;
|
ulong result;
|
||||||
|
@ -308,8 +308,7 @@ outahere:
|
|||||||
* Copy memory to flash
|
* Copy memory to flash
|
||||||
*/
|
*/
|
||||||
|
|
||||||
volatile static int write_word (flash_info_t * info, ulong dest,
|
static int write_word (flash_info_t * info, ulong dest, ulong data)
|
||||||
ulong data)
|
|
||||||
{
|
{
|
||||||
vu_long *addr = (vu_long *) dest;
|
vu_long *addr = (vu_long *) dest;
|
||||||
ulong result;
|
ulong result;
|
||||||
|
Loading…
Reference in New Issue
Block a user