diff options
author | horia.geanta@freescale.com <horia.geanta@freescale.com> | 2015-07-08 14:24:56 (GMT) |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-08-03 19:06:38 (GMT) |
commit | e5d08b4d601d4060609b162f437327c823b00947 (patch) | |
tree | 8d4625c970153bd82927640a18ebe30da4053add /drivers | |
parent | 01cafcedbfbefef6c975d7bbe704994bf3357ebd (diff) | |
download | u-boot-fsl-qoriq-e5d08b4d601d4060609b162f437327c823b00947.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/fsl/sec.c | 3 |
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)); |