summaryrefslogtreecommitdiff
path: root/board/freescale/t102xrdb
diff options
context:
space:
mode:
authorShengzhou Liu <Shengzhou.Liu@freescale.com>2015-04-14 17:56:50 +0800
committerYork Sun <yorksun@freescale.com>2015-05-04 09:24:50 -0700
commitea753267d56b6fcb097aff15a8831ef51dc9d615 (patch)
tree42fad558e98166d9cb2f12f5882d7d7ec36ce86a /board/freescale/t102xrdb
parentac337168ad81a18e768e5e3cfff8d229adeb2b25 (diff)
board/t102x: use fdt_setprop_string instead of fdt_setprop
Use fdt_setprop_string instead of fdt_setprop to fix string length. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/t102xrdb')
-rw-r--r--board/freescale/t102xrdb/eth_t102xrdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/t102xrdb/eth_t102xrdb.c b/board/freescale/t102xrdb/eth_t102xrdb.c
index dd386bc3a9..856ec6e227 100644
--- a/board/freescale/t102xrdb/eth_t102xrdb.c
+++ b/board/freescale/t102xrdb/eth_t102xrdb.c
@@ -133,8 +133,8 @@ void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,
(fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_SGMII)) &&
(port == FM1_DTSEC3)) {
fdt_set_phy_handle(fdt, compat, addr, "sg_2500_aqr105_phy4");
- fdt_setprop(fdt, offset, "phy-connection-type",
- "sgmii-2500", 10);
+ fdt_setprop_string(fdt, offset, "phy-connection-type",
+ "sgmii-2500");
fdt_status_disabled_by_alias(fdt, "xg_aqr105_phy3");
}
#endif