Commit 0b6da785 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alexandre Belloni

rtc: rzn1: Fix error code in probe

There is a copy and paste error so this code returns the wrong variable.

Fixes: deeb4b53 ("rtc: rzn1: Add new RTC driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/YoZMg1dmHHSJEfE9@kili
parent 64d69b5d
...@@ -348,7 +348,7 @@ static int rzn1_rtc_probe(struct platform_device *pdev) ...@@ -348,7 +348,7 @@ static int rzn1_rtc_probe(struct platform_device *pdev)
rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev); rtc->rtcdev = devm_rtc_allocate_device(&pdev->dev);
if (IS_ERR(rtc->rtcdev)) if (IS_ERR(rtc->rtcdev))
return PTR_ERR(rtc); return PTR_ERR(rtc->rtcdev);
rtc->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000; rtc->rtcdev->range_min = RTC_TIMESTAMP_BEGIN_2000;
rtc->rtcdev->range_max = RTC_TIMESTAMP_END_2099; rtc->rtcdev->range_max = RTC_TIMESTAMP_END_2099;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment