]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: dm355evm: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 12:43:33 +0000 (13:43 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:09 +0000 (10:07 +0200)
The MSP430 has a 32bit second counter.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-dm355evm.c

index d44bf39298989f1b6420c4d1c6b069e78466826c..cd80c89d90022c3b7076efb45816de34f6200df5 100644 (file)
@@ -134,6 +134,7 @@ static int dm355evm_rtc_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, rtc);
 
        rtc->ops = &dm355evm_rtc_ops;
+       rtc->range_max = U32_MAX;
 
        return rtc_register_device(rtc);
 }