summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhoria.geanta@freescale.com <horia.geanta@freescale.com>2015-07-08 17:24:56 +0300
committerYork Sun <yorksun@freescale.com>2015-08-03 12:06:38 -0700
commite5d08b4d601d4060609b162f437327c823b00947 (patch)
tree8d4625c970153bd82927640a18ebe30da4053add
parent01cafcedbfbefef6c975d7bbe704994bf3357ebd (diff)
downloadu-boot-imx-e5d08b4d601d4060609b162f437327c823b00947.zip
u-boot-imx-e5d08b4d601d4060609b162f437327c823b00947.tar.gz
u-boot-imx-e5d08b4d601d4060609b162f437327c823b00947.tar.bz2
drivers/crypto/fsl: fix "era" property value on LE platforms
Use fdt_setprop_u32() instead of fdt_setprop(). Fixes: 0181937fa371a ("crypto/fsl: Add fixup for crypto node") Signed-off-by: Horia Geantă <horia.geanta@freescale.com> Reviewed-by: Mingkai Hu <Mingkai.Hu@freescale.com> Acked-by: Ruchika Gupta<ruchika.gupta@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
-rw-r--r--drivers/crypto/fsl/sec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c
index 443ee96..b25b1a4 100644
--- a/drivers/crypto/fsl/sec.c
+++ b/drivers/crypto/fsl/sec.c
@@ -155,8 +155,7 @@ static void fdt_fixup_crypto_era(void *blob, u32 era)
return;
}
- err = fdt_setprop(blob, crypto_node, "fsl,sec-era", &era,
- sizeof(era));
+ err = fdt_setprop_u32(blob, crypto_node, "fsl,sec-era", era);
if (err < 0) {
printf("ERROR: could not set fsl,sec-era property: %s\n",
fdt_strerror(err));