Skip to content

Commit

Permalink
rtc: spear: set range max
Browse files Browse the repository at this point in the history
commit 03c4cd6 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
linuszeng authored and gregkh committed Aug 25, 2022
1 parent 51f58c8 commit d35d926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-spear.c
Expand Up @@ -388,7 +388,7 @@ static int spear_rtc_probe(struct platform_device *pdev)

config->rtc->ops = &spear_rtc_ops;
config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000;
config->rtc->range_min = RTC_TIMESTAMP_END_9999;
config->rtc->range_max = RTC_TIMESTAMP_END_9999;

status = devm_rtc_register_device(config->rtc);
if (status)
Expand Down

0 comments on commit d35d926

Please sign in to comment.