Skip to content

Commit

Permalink
rtc-bfin: fix inverted logic in suspend path
Browse files Browse the repository at this point in the history
The int_clear helper takes a bitmask of interrupts to keep, not to
disable.  When suspending without wakeup enabled, we want to disable
all interrupts, so use 0 (keep none) instead of -1 (keep all).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Sep 10, 2010
1 parent e0bf102 commit 110b7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-bfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state)
enable_irq_wake(IRQ_RTC);
bfin_rtc_sync_pending(&pdev->dev);
} else
bfin_rtc_int_clear(-1);
bfin_rtc_int_clear(0);

return 0;
}
Expand Down

0 comments on commit 110b7e9

Please sign in to comment.