]> git.sur5r.net Git - u-boot/commit
driver: net: fsl-mc: Memset dprc_cfg before configuring
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Wed, 20 Jan 2016 06:34:19 +0000 (12:04 +0530)
committerYork Sun <york.sun@nxp.com>
Mon, 1 Feb 2016 17:11:11 +0000 (09:11 -0800)
commit5373b204dfbd33349486e4030c6135e180a25e54
tree33246f12a1b29e90ec387cdfc7d50ba89448fbd6
parentcc7b8b9abb1de3b9957203afbeb9504a40fd2ca4
driver: net: fsl-mc: Memset dprc_cfg before configuring

All fields of struct dprc_cfg are not being configured while creating
child container. "Not" configured fields are assumed to be 0.

So memset dprc_cfg before configuring the fields.

Signed-off-by: Itai Katz <itai.katz@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/net/fsl-mc/mc.c