History

Merge tag 'rtc-v4.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux

Pull rtc fixes from Alexandre Belloni: "A few fixes for the RTC susbsystem for 4.2. The mt6397 driver was introduce in 4.2 so it is worth fixing before the final release. I though the compilation warning for armada38x was fixed by akpm in commit f98b733e93e0 ("rtc-armada38x.c: remove unused local `flags'") but he actually missed some occurrences of the variables. Since I received 4 patches for that, I think we can include it now. Summary: - fix mt6397 wakealarm creation - remove a compilation warning for armada38x that was forgotten" * tag 'rtc-v4.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: rtc: armada38x: Remove unused variable from armada38x_rtc_set_time() rtc: mt6397: enable wakeup before registering rtc device

Linus Torvalds committed 11 years ago

Commit dfe91c92 parents 3f8476f d80238b2 files · +3 −3Browse files

Unified · Split

2 files
  1. drivers/rtc/rtc-armada38x.c +1 −1
  2. drivers/rtc/rtc-mt6397.c +2 −2
drivers/rtc/rtc-armada38x.c+1−1
@@ -88,7 +88,7 @@ static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm) · 87 unmodified lines
8888 {
8989 struct armada38x_rtc *rtc = dev_get_drvdata(dev);
9090 int ret = 0;
91− unsigned long time, flags;
91+ unsigned long time;
9292
9393 ret = rtc_tm_to_time(tm, &time);
9494
drivers/rtc/rtc-mt6397.c+2−2
@@ -343,6 +343,8 @@ static int mtk_rtc_probe(struct platform_device *pdev) · 342 unmodified lines
343343 goto out_dispose_irq;
344344 }
345345
346+ device_init_wakeup(&pdev->dev, 1);
347+
346348 rtc->rtc_dev = rtc_device_register("mt6397-rtc", &pdev->dev,
347349 &mtk_rtc_ops, THIS_MODULE);
348350 if (IS_ERR(rtc->rtc_dev)) {
@@ -351,8 +353,6 @@ static int mtk_rtc_probe(struct platform_device *pdev) · 2 unmodified lines
351353 goto out_free_irq;
352354 }
353355
354− device_init_wakeup(&pdev->dev, 1);
355−
356356 return 0;
357357
358358 out_free_irq: