ar71xx: ar934x_nfc: fix memory initialization bug
authorGabor Juhos <juhosg@openwrt.org>
Wed, 12 Mar 2014 12:52:36 +0000 (12:52 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 12 Mar 2014 12:52:36 +0000 (12:52 +0000)
commit25e870eed60c817f16429ee1c4c7d2fe56da2bc1
tree38175eeadbb1adf16a7c9ea818d79485236b5eeb
parent24095302aaa3ddd81726783f37cda972e781c575
ar71xx: ar934x_nfc: fix memory initialization bug

sizeof(array_from_function_definition) gives back the size of the pointer.
sizeof(type)  * array_size   should be used in memset.

Signed-off-by: David Völgyes <david.volgyes@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4950/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39890
target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c