]> git.sur5r.net Git - u-boot/commit
fsl_*_serdes.c: Modify memset call in serdes_init
authorTom Rini <trini@konsulko.com>
Sat, 28 Nov 2015 13:04:41 +0000 (08:04 -0500)
committerYork Sun <yorksun@freescale.com>
Mon, 14 Dec 2015 02:27:29 +0000 (18:27 -0800)
commit1a338921642bf622230d91e5eb16b8b5250b44a5
tree68f1d08b4c479faa2336c08abeff3de8bc020c7b
parentb22b1dc6b7b5a74c7655a85b312ff3df0e69c4fe
fsl_*_serdes.c: Modify memset call in serdes_init

GCC 5.x does not like sizeof(array_variable) and errors out.  Change these
calls to be instead sizeof(u8) (as that's what serdes_prtcl_map is) *
SERDES_PRCTL_COUNT (the number of array elements).

Cc: York Sun <yorksun@freescale.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c