]> git.karo-electronics.de Git - linux-beck.git/commit
PM / Domains: Do not restore all devices on power off error
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 11 Jul 2011 22:39:48 +0000 (00:39 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 11 Jul 2011 22:39:48 +0000 (00:39 +0200)
commit697a7f3727b53c7d4c927948bbe1f6afc4fabfde
treed57da1cbcc7d0c72d1549aba1a19def94141773d
parentc6d22b37263607ba5aeeb2e11169fa65caa29bee
PM / Domains: Do not restore all devices on power off error

Since every device in a PM domain has its own need_restore
flag, which is set by __pm_genpd_save_device(), there's no need to
walk the domain's device list and restore all devices on an error
from one of the drivers' .runtime_suspend() callbacks.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c