Skip to content

Commit

Permalink
platform: Do not detach from PM domains on shutdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Jan 11, 2016
1 parent e3345db commit 2d30bb0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ static void platform_drv_shutdown(struct device *_dev)

if (drv->shutdown)
drv->shutdown(dev);
dev_pm_domain_detach(_dev, true);
}

/**
Expand Down

0 comments on commit 2d30bb0

Please sign in to comment.