mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-sh into next
- rmobile cleanup
This commit is contained in:
commit
86f4e84c29
1 changed files with 5 additions and 4 deletions
|
@ -83,14 +83,15 @@ static const struct {
|
|||
|
||||
static int rmobile_cpuinfo_idx(void)
|
||||
{
|
||||
int i = 0;
|
||||
u32 cpu_type = rmobile_get_cpu_type();
|
||||
int i;
|
||||
|
||||
for (; i < ARRAY_SIZE(rmobile_cpuinfo) - 1; i++)
|
||||
for (i = 0; i < ARRAY_SIZE(rmobile_cpuinfo) - 1; i++)
|
||||
if (rmobile_cpuinfo[i].cpu_type == cpu_type)
|
||||
break;
|
||||
return i;
|
||||
|
||||
return i;
|
||||
/* Unknown "CPU" entry */
|
||||
return ARRAY_SIZE(rmobile_cpuinfo) - 1;
|
||||
}
|
||||
|
||||
static const u8 *get_cpu_name(int idx)
|
||||
|
|
Loading…
Reference in a new issue