summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/ls102xa/fdt.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-08-13 12:34:55 -0400
committerTom Rini <trini@konsulko.com>2018-08-13 12:34:55 -0400
commitb8a1f47be3ab050090cd8625e580cf3c63e3ff53 (patch)
treef4ed93eeb2de63040779de54bc4e91fefdcc2a31 /arch/arm/cpu/armv7/ls102xa/fdt.c
parent8fee226da36f799e69041b2ab381064693199c7f (diff)
parent9add5a4b75a01cc5f69b9d5f6b30443f2088d7d8 (diff)
Merge git://git.denx.de/u-boot-fsl-qoriq
Diffstat (limited to 'arch/arm/cpu/armv7/ls102xa/fdt.c')
-rw-r--r--arch/arm/cpu/armv7/ls102xa/fdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c
index 6c3caf84b2..8bf9c42b22 100644
--- a/arch/arm/cpu/armv7/ls102xa/fdt.c
+++ b/arch/arm/cpu/armv7/ls102xa/fdt.c
@@ -64,8 +64,8 @@ void ft_fixup_enet_phy_connect_type(void *fdt)
do_fixup_by_path(fdt, enet_path, "phy-connection-type",
phy_string_for_interface(
PHY_INTERFACE_MODE_RGMII_ID),
- sizeof(phy_string_for_interface(
- PHY_INTERFACE_MODE_RGMII_ID)),
+ strlen(phy_string_for_interface(
+ PHY_INTERFACE_MODE_RGMII_ID)) + 1,
1);
}
}