summaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-12 00:12:19 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-12 00:12:19 +0100
commit2d30bb0b3889adf09b342722b2ce596c0763bc93 (patch)
tree22dd26da68dcca07549a3434eb36f47f5a682fd6 /drivers/base/platform.c
parentUSB / PM: Allow USB devices to remain runtime-suspended when sleeping (diff)
downloadlinux-2d30bb0b3889adf09b342722b2ce596c0763bc93.tar.xz
linux-2d30bb0b3889adf09b342722b2ce596c0763bc93.zip
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>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r--drivers/base/platform.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 1dd6d3bf1098..484255c7bc47 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -552,7 +552,6 @@ static void platform_drv_shutdown(struct device *_dev)
if (drv->shutdown)
drv->shutdown(dev);
- dev_pm_domain_detach(_dev, true);
}
/**