]> git.sur5r.net Git - u-boot/commitdiff
drivers/crypto/fsl: fix "era" property value on LE platforms
authorhoria.geanta@freescale.com <horia.geanta@freescale.com>
Wed, 8 Jul 2015 14:24:56 +0000 (17:24 +0300)
committerYork Sun <yorksun@freescale.com>
Mon, 3 Aug 2015 19:06:38 +0000 (12:06 -0700)
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>
drivers/crypto/fsl/sec.c

index 443ee964feaeb881d7e13a570d68f86d8d67d5e1..b25b1a4052d23b596341145a98dea1d742dabd89 100644 (file)
@@ -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));