Commit 2fa86e52 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Ludovic Desroches

ARM: at91: pm: keep at91_pm_backup_init() only for SAMA5D2 SoCs

In at91_pm_backup_init() return if it is not about SAMA5D2 SoCs.
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: default avatarLudovic Desroches <ludovic.desroches@microchip.com>
parent 01c7031c
......@@ -588,6 +588,9 @@ static int __init at91_pm_backup_init(void)
struct platform_device *pdev = NULL;
int ret = -ENODEV;
if (!IS_ENABLED(CONFIG_SOC_SAMA5D2))
return -EPERM;
if (!at91_is_pm_mode_active(AT91_PM_BACKUP))
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment