From 7ae01a14be03df87594a36f421191bd95769c293 Mon Sep 17 00:00:00 2001 From: SamulKyull <166363804+SamulKyull@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:46:48 +0800 Subject: [PATCH] fix kernel origin 5.10 issue --- bsp/drivers/rtc/rtc-sunxi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bsp/drivers/rtc/rtc-sunxi.c b/bsp/drivers/rtc/rtc-sunxi.c index e5e813b989..a7c217007b 100644 --- a/bsp/drivers/rtc/rtc-sunxi.c +++ b/bsp/drivers/rtc/rtc-sunxi.c @@ -35,7 +35,8 @@ #include #include #include "rtc-sunxi.h" -#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 10, 149) +#if (IS_ENABLED(CONFIG_AW_KERNEL_AOSP) && (LINUX_VERSION_CODE > KERNEL_VERSION(5, 10, 149))) || \ + (IS_ENABLED(CONFIG_AW_KERNEL_ORIGIN) && (LINUX_VERSION_CODE > KERNEL_VERSION(5, 15, 0))) #include #endif