clk: at91: Fix initializing arrays
authorFrancois Berder <fberder@outlook.fr>
Sun, 24 Sep 2023 09:58:54 +0000 (11:58 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Fri, 29 Sep 2023 13:45:40 +0000 (16:45 +0300)
commit7b4ffe8c32db284e25d3a2636904def8e093da9e
tree955dd4aa32e1b71edc5889d28d8af3935a468d56
parentd6b4359e50bb1dc567f6596c67b25a3c7a8ff130
clk: at91: Fix initializing arrays

Arrays are not cleared entirely because ARRAY_SIZE
returns the number of elements in an array, not the size
in bytes.
This commit fixes the calls to memset by providing the
array size in bytes instead of the number of elements
in the array.

Signed-off-by: Francois Berder <fberder@outlook.fr>
drivers/clk/at91/sam9x60.c
drivers/clk/at91/sama7g5.c