X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Frenesas%2Fsh7753evb%2Fsh7753evb.c;h=cdeacb8aaeeded798985233a1186825c83233d64;hb=09140113108541b95d340f3c7b6ee597d31ccc73;hp=8604d882474048c2487a64b14d34664d3c8f967b;hpb=844fb498cc978608ec88bdf29913c0d46c85bfff;p=oweals%2Fu-boot.git diff --git a/board/renesas/sh7753evb/sh7753evb.c b/board/renesas/sh7753evb/sh7753evb.c index 8604d88247..cdeacb8aae 100644 --- a/board/renesas/sh7753evb/sh7753evb.c +++ b/board/renesas/sh7753evb/sh7753evb.c @@ -1,12 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2012 Renesas Solutions Corp. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include -#include +#include +#include +#include +#include #include +#include #include #include #include @@ -101,7 +104,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; @@ -191,6 +194,7 @@ int board_mmc_init(bd_t *bis) static int get_sh_eth_mac_raw(unsigned char *buf, int size) { +#ifdef CONFIG_DEPRECATED struct spi_flash *spi; int ret; @@ -207,6 +211,7 @@ static int get_sh_eth_mac_raw(unsigned char *buf, int size) return 1; } spi_flash_free(spi); +#endif return 0; } @@ -256,7 +261,8 @@ int board_late_init(void) return 0; } -int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +#ifdef CONFIG_DEPRECATED +int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int i, ret; char mac_string[256]; @@ -319,3 +325,4 @@ U_BOOT_CMD( "write MAC address for GETHERC", "[GETHERC ch0] [GETHERC ch1]\n" ); +#endif