[PATCH] clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs
Stephen Boyd
sboyd at kernel.org
Mon Jul 15 12:47:31 PDT 2024
Quoting Claudiu Beznea (2024-07-14 07:13:15)
> The maximum number of PLL components on SAMA7G5 is 3 (one fractional
> part and 2 dividers). Allocate the needed amount of memory for
> sama7g5_plls 2d array. Previous code used to allocate 7 array entries for
> each PLL. While at it, replace 3 with PLL_COMPID_MAX in the loop which
> parses the sama7g5_plls 2d array.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea at tuxon.dev>
> ---
Might as well add a Fixes tag so we know when it was less efficient and
to help anyone trying to backport this driver.
Acked-by: Stephen Boyd <sboyd at kernel.org>
More information about the linux-arm-kernel
mailing list