]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-tps65910.c: remove unnecessary irq stat save and restore
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 7 Feb 2013 01:27:47 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:17 +0000 (16:47 +1100)
commit1c6fa48fe414ffd837972d72043b4f7ef98480de
treeab8963af8638cce126bf01e7c3558231615295a6
parent8a333cabc6d49bb35800194a7dc4dc7535a7c548
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>
drivers/rtc/rtc-tps65910.c