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)
commit0fe11f6dc752c620a163f9aa78cbf0082b6b06e4
tree842b0676addf3cb96b3cba5613853b61150708bd
parent0a9243ccb083eec4ba719a630377b17628fb4dc5
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