]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit020c82bcd86be7fc9c2d51daad3b2d4221487413
tree955dd4aa32e1b71edc5889d28d8af3935a468d56
parent8542dd89b05a3a4962593395df1f6fbe8eefbf55
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