Commit 23af616c authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: da9052: set range

parent d17077e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -303,6 +303,8 @@ static int da9052_rtc_probe(struct platform_device *pdev)
		return PTR_ERR(rtc->rtc);

	rtc->rtc->ops = &da9052_rtc_ops;
	rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
	rtc->rtc->range_max = RTC_TIMESTAMP_END_2063;

	ret = rtc_register_device(rtc->rtc);
	if (ret)