@@ -398,6 +398,9 @@ int __devm_rtc_register_device(struct module *owner, struct rtc_device *rtc)
if (!rtc->ops->set_alarm)
clear_bit(RTC_FEATURE_ALARM, rtc->features);
+ if (rtc->ops->set_offset)
+ set_bit(RTC_FEATURE_CORRECTION, rtc->features);
+
rtc->owner = owner;
rtc_device_get_offset(rtc);
@@ -116,7 +116,8 @@ struct rtc_pll_info {
#define RTC_FEATURE_NEED_WEEK_DAY 2
#define RTC_FEATURE_ALARM_RES_2S 3
#define RTC_FEATURE_UPDATE_INTERRUPT 4
-#define RTC_FEATURE_CNT 5
+#define RTC_FEATURE_CORRECTION 5
+#define RTC_FEATURE_CNT 6
#define RTC_MAX_FREQ 8192