Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: at91: pmc: add sama7g5 to the list of available pmcs

Add SAMA7G5 to the list of available PMCs such that the suspend/resume
code for clocks to be used on backup mode.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20211011112719.3951784-7-claudiu.beznea@microchip.com
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Claudiu Beznea and committed by
Stephen Boyd
5df4cd90 88bdeed3

+3 -2
+3 -2
drivers/clk/at91/pmc.c
··· 148 148 .resume = at91_pmc_resume, 149 149 }; 150 150 151 - static const struct of_device_id sama5d2_pmc_dt_ids[] = { 151 + static const struct of_device_id pmc_dt_ids[] = { 152 152 { .compatible = "atmel,sama5d2-pmc" }, 153 + { .compatible = "microchip,sama7g5-pmc", }, 153 154 { /* sentinel */ } 154 155 }; 155 156 ··· 158 157 { 159 158 struct device_node *np; 160 159 161 - np = of_find_matching_node(NULL, sama5d2_pmc_dt_ids); 160 + np = of_find_matching_node(NULL, pmc_dt_ids); 162 161 if (!np) 163 162 return -ENODEV; 164 163