Message ID | 20220222150846.255307-5-clement.leger@bootlin.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ARM: at91: add support for secure suspend on sama5d2 | expand |
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index 0c3960a8b3eb..279ab7e0cdca 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h @@ -8,7 +8,7 @@ #ifndef _AT91_GENERIC_H #define _AT91_GENERIC_H -#ifdef CONFIG_PM +#if defined(CONFIG_ATMEL_PM) || defined(CONFIG_ATMEL_SECURE_PM) extern void __init at91rm9200_pm_init(void); extern void __init at91sam9_pm_init(void); extern void __init sam9x60_pm_init(void);
These defines actually don't depend on CONFIG_PM but CONFIG_ATMEL_PM. In the same time, add a "or" with CONFIG_ATMEL_SECURE_PM since it can also provides these functions. Signed-off-by: Clément Léger <clement.leger@bootlin.com> --- arch/arm/mach-at91/generic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)