Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186876
b: refs/heads/master
c: 29c71b1
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Mar 7, 2010
1 parent afe904a commit c097c0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f99344fc69c3df46786a39ea4283a4175ea40b3f
refs/heads/master: 29c71b138c83c8191f1f7e46fcc28b9d6bc8a5dd
7 changes: 7 additions & 0 deletions trunk/drivers/rtc/rtc-wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,18 @@ static int wm8350_rtc_update_irq_enable(struct device *dev,
{
struct wm8350 *wm8350 = dev_get_drvdata(dev);

/* Suppress duplicate changes since genirq nests enable and
* disable calls. */
if (enabled == wm8350->rtc.update_enabled)
return 0;

if (enabled)
wm8350_unmask_irq(wm8350, WM8350_IRQ_RTC_SEC);
else
wm8350_mask_irq(wm8350, WM8350_IRQ_RTC_SEC);

wm8350->rtc.update_enabled = enabled;

return 0;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mfd/wm8350/rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ struct wm8350_rtc {
struct platform_device *pdev;
struct rtc_device *rtc;
int alarm_enabled; /* used over suspend/resume */
int update_enabled;
};

#endif

0 comments on commit c097c0a

Please sign in to comment.