From 2d30bb0b3889adf09b342722b2ce596c0763bc93 Mon Sep 17 00:00:00 2001 From: "Rafael J. Wysocki" Date: Tue, 12 Jan 2016 00:12:19 +0100 Subject: 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 Reported-and-tested-by: Fabio Estevam Acked-by: Ulf Hansson --- drivers/base/platform.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/base/platform.c') 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); } /** -- cgit v1.2.3