aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-stm32.c
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2018-05-17 08:04:23 -0400
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-22 14:10:50 -0400
commit819cbde5218689d33e0405ebe71bed07bc21f28e (patch)
tree0196b8b9c803bd617e767500690ff6536e942ee6 /drivers/rtc/rtc-stm32.c
parent75d01b75c2efcf79a3df0d60ebda3b9a7841e848 (diff)
rtc: stm32: fix misspelling and misalignment issues
This patch cleans the following checkpatch complaints: CHECK: 'initalized' may be misspelled - perhaps 'initialized'? #644: FILE: drivers/rtc/rtc-stm32.c:644: + * the calendar has been initalized or not. INITS flag is reset by a CHECK: Alignment should match open parenthesis #669: FILE: drivers/rtc/rtc-stm32.c:669: + rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, pdev->name, + &stm32_rtc_ops, THIS_MODULE); Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
-rw-r--r--drivers/rtc/rtc-stm32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c
index de49b5b12951..d41f8047bee4 100644
--- a/drivers/rtc/rtc-stm32.c
+++ b/drivers/rtc/rtc-stm32.c
@@ -641,7 +641,7 @@ static int stm32_rtc_probe(struct platform_device *pdev)
641 641
642 /* 642 /*
643 * After a system reset, RTC_ISR.INITS flag can be read to check if 643 * After a system reset, RTC_ISR.INITS flag can be read to check if
644 * the calendar has been initalized or not. INITS flag is reset by a 644 * the calendar has been initialized or not. INITS flag is reset by a
645 * power-on reset (no vbat, no power-supply). It is not reset if 645 * power-on reset (no vbat, no power-supply). It is not reset if
646 * rtc_ck parent clock has changed (so RTC prescalers need to be 646 * rtc_ck parent clock has changed (so RTC prescalers need to be
647 * changed). That's why we cannot rely on this flag to know if RTC 647 * changed). That's why we cannot rely on this flag to know if RTC
@@ -666,7 +666,7 @@ static int stm32_rtc_probe(struct platform_device *pdev)
666 "alarm won't be able to wake up the system"); 666 "alarm won't be able to wake up the system");
667 667
668 rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, pdev->name, 668 rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, pdev->name,
669 &stm32_rtc_ops, THIS_MODULE); 669 &stm32_rtc_ops, THIS_MODULE);
670 if (IS_ERR(rtc->rtc_dev)) { 670 if (IS_ERR(rtc->rtc_dev)) {
671 ret = PTR_ERR(rtc->rtc_dev); 671 ret = PTR_ERR(rtc->rtc_dev);
672 dev_err(&pdev->dev, "rtc device registration failed, err=%d\n", 672 dev_err(&pdev->dev, "rtc device registration failed, err=%d\n",