mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
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 <[email protected]> Reported-and-tested-by: Fabio Estevam <[email protected]> Acked-by: Ulf Hansson <[email protected]>
This commit is contained in:
@@ -552,7 +552,6 @@ static void platform_drv_shutdown(struct device *_dev)
|
||||
|
||||
if (drv->shutdown)
|
||||
drv->shutdown(dev);
|
||||
dev_pm_domain_detach(_dev, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user