[POWERPC] bootwrapper: convert cuboot-8{3,5}xx to dt_fixup_mac_address_by_alias
authorKumar Gala <galak@kernel.crashing.org>
Tue, 15 Jan 2008 15:33:56 +0000 (09:33 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Jan 2008 01:32:47 +0000 (19:32 -0600)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/cuboot-83xx.c
arch/powerpc/boot/cuboot-85xx.c

index acd860ed7393222fbcbbe469d5ce39ec55d55140..61af1c1e8255cf53486e5bb01d4894a57c1c06a2 100644 (file)
@@ -24,7 +24,8 @@ static void platform_fixups(void)
        void *soc;
 
        dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
-       dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr);
+       dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
+       dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
        dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
 
        /* Unfortunately, the specific model number is encoded in the
index 943779ed19be08f3988559ad305fe4125f3b3f26..6776a1a29f13f530279ff9dd41e59ee3727c1a70 100644 (file)
@@ -24,8 +24,9 @@ static void platform_fixups(void)
        void *soc;
 
        dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
-       dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr,
-                              bd.bi_enet2addr);
+       dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
+       dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr);
+       dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr);
        dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq);
 
        /* Unfortunately, the specific model number is encoded in the