mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-21 23:16:50 +08:00
Merge branch 'pm-runtime'
Merge a fix for a race condition related to device removal (Bart Van Assche) for 7.0-rc5. * pm-runtime: PM: runtime: Fix a race condition related to device removal
This commit is contained in:
@@ -1895,6 +1895,7 @@ void pm_runtime_reinit(struct device *dev)
|
||||
void pm_runtime_remove(struct device *dev)
|
||||
{
|
||||
__pm_runtime_disable(dev, false);
|
||||
flush_work(&dev->power.work);
|
||||
pm_runtime_reinit(dev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user