powerpc/83xx/suspend: Clear deep_sleeping after devices resume
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 10 Dec 2009 18:00:53 +0000 (21:00 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 11 Dec 2009 01:56:24 +0000 (19:56 -0600)
commitf25c525c1412675d2b23d5d88660fb5c9f3a5341
tree9f5b5ec76a0dfbb590bda9dc182f30919f31be26
parentb22b97c15eed893a6768aad2f596706c56bf194e
powerpc/83xx/suspend: Clear deep_sleeping after devices resume

Currently 83xx PMC driver clears deep_sleeping variable very early,
before devices are resumed. This makes fsl_deep_sleep() unusable in
drivers' resume() callback.

Sure, drivers can store fsl_deep_sleep() value on suspend and use
the stored value on resume. But a better solution is to postpone
clearing the deep_sleeping variable, i.e. move it into finish()
callback.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/83xx/suspend.c