linux-yocto/drivers/clk/at91
Claudiu Beznea 08d13bcb9c clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs
[ Upstream commit 2d6e9ee7cb ]

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.

Fixes: cb783bbbcf ("clk: at91: sama7g5: add clock support for sama7g5")
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240714141315.19480-1-claudiu.beznea@tuxon.dev
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-04 16:29:30 +02:00
..
at91rm9200.c
at91sam9g45.c
at91sam9n12.c
at91sam9rl.c
at91sam9x5.c
at91sam9260.c
clk-audio-pll.c
clk-generated.c
clk-h32mx.c
clk-i2s-mux.c
clk-main.c
clk-master.c
clk-peripheral.c
clk-pll.c
clk-plldiv.c
clk-programmable.c
clk-sam9x60-pll.c
clk-slow.c
clk-smd.c
clk-system.c
clk-usb.c
clk-utmi.c
dt-compat.c
Makefile
pmc.c
pmc.h
sam9x60.c
sama5d2.c
sama5d3.c
sama5d4.c
sama7g5.c
sckc.c