Commit 3e6f4394ab3ae4480593d5f2612a0d92fd39bf07
1 parent
ad160681c8
Exists in
master
and in
7 other branches
[POWERPC] bootwrapper: convert cuboot-8{3,5}xx to dt_fixup_mac_address_by_alias
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Showing 2 changed files with 5 additions and 3 deletions Side-by-side Diff
arch/powerpc/boot/cuboot-83xx.c
... | ... | @@ -24,7 +24,8 @@ |
24 | 24 | void *soc; |
25 | 25 | |
26 | 26 | dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); |
27 | - dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr); | |
27 | + dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); | |
28 | + dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); | |
28 | 29 | dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); |
29 | 30 | |
30 | 31 | /* Unfortunately, the specific model number is encoded in the |
arch/powerpc/boot/cuboot-85xx.c
... | ... | @@ -24,8 +24,9 @@ |
24 | 24 | void *soc; |
25 | 25 | |
26 | 26 | dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); |
27 | - dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr, | |
28 | - bd.bi_enet2addr); | |
27 | + dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); | |
28 | + dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); | |
29 | + dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); | |
29 | 30 | dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); |
30 | 31 | |
31 | 32 | /* Unfortunately, the specific model number is encoded in the |