Commit 166b1332 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: starfire: set range

parent c33c4713
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -39,14 +39,16 @@ static int __init starfire_rtc_probe(struct platform_device *pdev)
{
	struct rtc_device *rtc;

	rtc = devm_rtc_device_register(&pdev->dev, "starfire",
				&starfire_rtc_ops, THIS_MODULE);
	rtc = devm_rtc_allocate_device(&pdev->dev);
	if (IS_ERR(rtc))
		return PTR_ERR(rtc);

	rtc->ops = &starfire_rtc_ops;
	rtc->range_max = U32_MAX;

	platform_set_drvdata(pdev, rtc);

	return 0;
	return rtc_register_device(rtc);
}

static struct platform_driver starfire_rtc_driver = {