From: Rafael J. Wysocki Date: Mon, 11 Jan 2016 23:12:19 +0000 (+0100) Subject: UPSTREAM: platform: Do not detach from PM domains on shutdown X-Git-Tag: firefly_0821_release~2413 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8afd25d646285f25642f496abeff8b37c7aec118;p=firefly-linux-kernel-4.4.55.git 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) --- 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); } /**