Commit e5d08b4d authored by horia.geanta@freescale.com's avatar horia.geanta@freescale.com Committed by York Sun

drivers/crypto/fsl: fix "era" property value on LE platforms

Use fdt_setprop_u32() instead of fdt_setprop().

Fixes: 0181937f ("crypto/fsl: Add fixup for crypto node")
Signed-off-by: default avatarHoria Geantă <horia.geanta@freescale.com>
Reviewed-by: default avatarMingkai Hu <Mingkai.Hu@freescale.com>
Acked-by: Ruchika Gupta<ruchika.gupta@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent 01cafced
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment