]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drivers/rtc/rtc-tps65910.c: remove unnecessary irq stat save and restore
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 22 Feb 2013 00:44:36 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:28 +0000 (17:22 -0800)
commitdfaf09ac8555141b7311bb69b456bd96886fd90c
treebe5f3f97462475fdf38aa26e0aa8bf8141731581
parenteb5eba4ef72248b976465906cfed5fca2e9d8831
drivers/rtc/rtc-tps65910.c: remove unnecessary irq stat save and restore

The driver stores the interrupt enable register before going to suspend
and restore in resume.  Also it enables alarm before going to suspend.

The driver only write the Interrupt enable register for enabling ALARM and
does not enable any other bits.  So it is not require to save complete
register and enable ALARM interrupt before suspend and restore in resume.

Also ALARM interrupt already enable if alarm is enabled before going to
suspend and hence it is not require to enable explictly in suspend.

Removing such above code.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-tps65910.c