platform: Do not detach from PM domains on shutdown
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Jan 2016 23:12:19 +0000 (00:12 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Jan 2016 23:12:19 +0000 (00:12 +0100)
commit2d30bb0b3889adf09b342722b2ce596c0763bc93
tree22dd26da68dcca07549a3434eb36f47f5a682fd6
parente3345db85068ddb937fc0ba40dfc39c293dad977
platform: Do not detach from PM domains on shutdown

Shutdown is carried out when the driver is still bound to the
device, so it is incorrect to detach it from a PM domain (if any)
at this point.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reported-and-tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/platform.c