bbswitch_dev: disable runtime PM on removal
Call pm_runtime_forbid() to balance it with pm_runtime_allow(), this ensures that the runtime usage counter before loading and after unloading match.
This commit is contained in:
1 parent
fb3d5a614a
commit
fe3f58c15f
1 file changed
+1
@@ -38,6 +38,7 @@ static void bbswitch_pci_remove(struct pci_dev *dev)
|
||||
{
|
||||
pm_runtime_get_noresume(&dev->dev);
|
||||
pm_runtime_dont_use_autosuspend(&dev->dev);
|
||||
pm_runtime_forbid(&dev->dev);
|
||||
}
|
||||
|
||||
static int bbswitch_runtime_suspend(struct device *dev) {
|
||||
|
||||
Reference in new issue
Block a user