diff options
Diffstat (limited to 'drivers/pci/hotplug/pciehp_core.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index 4fb569018a24..1e8506e0fd87 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c | |||
@@ -439,7 +439,7 @@ static int pciehp_probe(struct pcie_device *dev, const struct pcie_port_service_ | |||
439 | } | 439 | } |
440 | 440 | ||
441 | /* Wait for exclusive access to hardware */ | 441 | /* Wait for exclusive access to hardware */ |
442 | down(&ctrl->crit_sect); | 442 | mutex_lock(&ctrl->crit_sect); |
443 | 443 | ||
444 | t_slot->hpc_ops->get_adapter_status(t_slot, &value); /* Check if slot is occupied */ | 444 | t_slot->hpc_ops->get_adapter_status(t_slot, &value); /* Check if slot is occupied */ |
445 | 445 | ||
@@ -447,7 +447,7 @@ static int pciehp_probe(struct pcie_device *dev, const struct pcie_port_service_ | |||
447 | rc = t_slot->hpc_ops->power_off_slot(t_slot); /* Power off slot if not occupied*/ | 447 | rc = t_slot->hpc_ops->power_off_slot(t_slot); /* Power off slot if not occupied*/ |
448 | if (rc) { | 448 | if (rc) { |
449 | /* Done with exclusive hardware access */ | 449 | /* Done with exclusive hardware access */ |
450 | up(&ctrl->crit_sect); | 450 | mutex_unlock(&ctrl->crit_sect); |
451 | goto err_out_free_ctrl_slot; | 451 | goto err_out_free_ctrl_slot; |
452 | } else | 452 | } else |
453 | /* Wait for the command to complete */ | 453 | /* Wait for the command to complete */ |
@@ -455,7 +455,7 @@ static int pciehp_probe(struct pcie_device *dev, const struct pcie_port_service_ | |||
455 | } | 455 | } |
456 | 456 | ||
457 | /* Done with exclusive hardware access */ | 457 | /* Done with exclusive hardware access */ |
458 | up(&ctrl->crit_sect); | 458 | mutex_unlock(&ctrl->crit_sect); |
459 | 459 | ||
460 | return 0; | 460 | return 0; |
461 | 461 | ||