summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 1835f3a7aa8d..0e54588825cb 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4571,13 +4571,13 @@ static int pci_reset_hotplug_slot(struct hotplug_slot *hotplug, int probe)
4571{ 4571{
4572 int rc = -ENOTTY; 4572 int rc = -ENOTTY;
4573 4573
4574 if (!hotplug || !try_module_get(hotplug->ops->owner)) 4574 if (!hotplug || !try_module_get(hotplug->owner))
4575 return rc; 4575 return rc;
4576 4576
4577 if (hotplug->ops->reset_slot) 4577 if (hotplug->ops->reset_slot)
4578 rc = hotplug->ops->reset_slot(hotplug, probe); 4578 rc = hotplug->ops->reset_slot(hotplug, probe);
4579 4579
4580 module_put(hotplug->ops->owner); 4580 module_put(hotplug->owner);
4581 4581
4582 return rc; 4582 return rc;
4583} 4583}