Skip to content

Commit 03c4cd6

Browse files
linuszengalexandrebelloni
authored andcommitted
rtc: spear: set range max
In the commit f395e1d ("rtc: spear: set range"), the value of RTC_TIMESTAMP_END_9999 was incorrectly set to range_min. 390 config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000; 391 config->rtc->range_max = RTC_TIMESTAMP_END_9999; Fixes: f395e1d ("rtc: spear: set range") Signed-off-by: Zeng Jingxiang <linuszeng@tencent.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220728100101.1906801-1-zengjx95@gmail.com
1 parent 6492fed commit 03c4cd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rtc/rtc-spear.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static int spear_rtc_probe(struct platform_device *pdev)
388388

389389
config->rtc->ops = &spear_rtc_ops;
390390
config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000;
391-
config->rtc->range_min = RTC_TIMESTAMP_END_9999;
391+
config->rtc->range_max = RTC_TIMESTAMP_END_9999;
392392

393393
status = devm_rtc_register_device(config->rtc);
394394
if (status)

0 commit comments

Comments
 (0)