X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Ffreescale%2Ft4qds%2Feth.c;h=810868ff39498752ee3e7de9a14d37f82d25177c;hb=04909251fdecac9d05e527b83e86e043e8df00ea;hp=9b416b138ae615872c657bb9e5d80f9eed5ecea9;hpb=6defdc0b5552ab1af4a66a8abac8196cbb6b9e15;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/freescale/t4qds/eth.c b/board/freescale/t4qds/eth.c index 9b416b1..810868f 100644 --- a/board/freescale/t4qds/eth.c +++ b/board/freescale/t4qds/eth.c @@ -1,11 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2012 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include +#include +#include +#include #include #include #include @@ -21,11 +23,12 @@ #include #include #include -#include +#include #include #include #include "../common/qixis.h" #include "../common/fman.h" +#include #include "t4240qds_qixis.h" @@ -153,7 +156,7 @@ static int t4240qds_mdio_init(char *realbusname, u8 muxval) bus->read = t4240qds_mdio_read; bus->write = t4240qds_mdio_write; bus->reset = t4240qds_mdio_reset; - sprintf(bus->name, t4240qds_mdio_name_for_muxval(muxval)); + strcpy(bus->name, t4240qds_mdio_name_for_muxval(muxval)); pmdio->realbus = miiphy_get_dev_by_name(realbusname); @@ -658,7 +661,7 @@ int board_eth_init(bd_t *bis) switch (fm_info_get_enet_if(i)) { case PHY_INTERFACE_MODE_XGMII: if ((srds_prtcl_s2 == 55) || (srds_prtcl_s2 == 57)) { - /* A fake PHY address to make U-boot happy */ + /* A fake PHY address to make U-Boot happy */ fm_info_set_phy_address(i, i); } else { lane = serdes_get_first_lane(FSL_SRDS_1, @@ -839,7 +842,7 @@ int board_eth_init(bd_t *bis) switch (fm_info_get_enet_if(i)) { case PHY_INTERFACE_MODE_XGMII: if ((srds_prtcl_s2 == 55) || (srds_prtcl_s2 == 57)) { - /* A fake PHY address to make U-boot happy */ + /* A fake PHY address to make U-Boot happy */ fm_info_set_phy_address(i, i); } else { lane = serdes_get_first_lane(FSL_SRDS_2,