]> 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>
Wed, 20 Feb 2013 02:15:44 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:26 +0000 (16:53 +1100)
commit6b999f1bf106f82b4a0b5fa0cc0cca2dfb6571f6
tree4d40e9067d2a02128e7a148fe48e745c91c58e2d
parentac39f827572d65c4a537bf079fdabe8a8092ade8
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