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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6492fed commit 03c4cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)