command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / board / renesas / sh7757lcr / sh7757lcr.c
index 3222701ad2db2ebbbca7de60d88eef1cfd93ea8f..5e76b9e7b4c1762652582d1860e6e7d03e7501f1 100644 (file)
@@ -4,8 +4,12 @@
  */
 
 #include <common.h>
-#include <environment.h>
+#include <command.h>
+#include <env.h>
+#include <flash.h>
+#include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
@@ -140,7 +144,7 @@ static void set_mac_to_sh_eth_register(int channel, char *mac_string)
        unsigned char mac[6];
        unsigned long val;
 
-       eth_parse_enetaddr(mac_string, mac);
+       string_to_enetaddr(mac_string, mac);
 
        if (!channel)
                ether = ETHER0_MAC_BASE;
@@ -159,7 +163,7 @@ static void set_mac_to_sh_giga_eth_register(int channel, char *mac_string)
        unsigned char mac[6];
        unsigned long val;
 
-       eth_parse_enetaddr(mac_string, mac);
+       string_to_enetaddr(mac_string, mac);
 
        if (!channel)
                ether = GETHER0_MAC_BASE;
@@ -341,7 +345,7 @@ int board_late_init(void)
        return 0;
 }
 
-int do_sh_g200(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_sh_g200(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct gctrl_regs *gctrl = GCTRL_BASE;
        unsigned long graofst;
@@ -360,7 +364,7 @@ U_BOOT_CMD(
 );
 
 #ifdef CONFIG_DEPRECATED
-int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i, ret;
        char mac_string[256];