From 8afd25d646285f25642f496abeff8b37c7aec118 Mon Sep 17 00:00:00 2001 From: "Rafael J. Wysocki" Date: Tue, 12 Jan 2016 00:12:19 +0100 Subject: [PATCH] UPSTREAM: 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. Change-Id: I325d018c98307fc3386273e2ca6f021ead5069b5 Signed-off-by: Rafael J. Wysocki Reported-and-tested-by: Fabio Estevam Acked-by: Ulf Hansson Signed-off-by: Huang, Tao (cherry picked from commit 2d30bb0b3889adf09b342722b2ce596c0763bc93) --- drivers/base/platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 176b59f5bc47..9fbafabd82d1 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -557,7 +557,6 @@ static void platform_drv_shutdown(struct device *_dev) if (drv->shutdown) drv->shutdown(dev); - dev_pm_domain_detach(_dev, true); } /** -- 2.34.1