summaryrefslogtreecommitdiff
path: root/components/drivers/rtc/dev_alarm.c
diff options
context:
space:
mode:
authorkurisaw <[email protected]>2024-12-13 13:24:48 +0800
committerMeco Man <[email protected]>2024-12-13 17:41:44 -0500
commit23256d35bc443b3efe048e8ca1abd30bf602aa30 (patch)
tree42b7cee21f7e3f2d7902c988d00172a4a8783d0e /components/drivers/rtc/dev_alarm.c
parent1c54ff4de60b06f3cce6a7328627330683b294be (diff)
[drivers][rtc] Fixed software and hardware rtc device naming as rtc
Diffstat (limited to 'components/drivers/rtc/dev_alarm.c')
-rw-r--r--components/drivers/rtc/dev_alarm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/drivers/rtc/dev_alarm.c b/components/drivers/rtc/dev_alarm.c
index ae619bf59a..aabc415838 100644
--- a/components/drivers/rtc/dev_alarm.c
+++ b/components/drivers/rtc/dev_alarm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2023, RT-Thread Development Team
+ * Copyright (c) 2006-2024 RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -52,11 +52,7 @@ static rt_err_t alarm_set(struct rt_alarm *alarm)
struct rt_rtc_wkalarm wkalarm;
rt_err_t ret;
-#ifdef RT_USING_SOFT_RTC
- device = rt_device_find("sw_rtc");
-#else
device = rt_device_find("rtc");
-#endif
if (device == RT_NULL)
{