From: horia.geanta@freescale.com Date: Wed, 8 Jul 2015 14:24:56 +0000 (+0300) Subject: drivers/crypto/fsl: fix "era" property value on LE platforms X-Git-Tag: v2015.10-rc2~424^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e5d08b4d601d4060609b162f437327c823b00947;p=oweals%2Fu-boot.git 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ă Reviewed-by: Mingkai Hu Acked-by: Ruchika Gupta Reviewed-by: York Sun --- diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index 443ee964fe..b25b1a4052 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));