|
@@ -1126,11 +1126,8 @@ static int ark_pci_resume (struct pci_dev* dev)
|
|
|
acquire_console_sem();
|
|
|
mutex_lock(&(par->open_lock));
|
|
|
|
|
|
- if (par->ref_count == 0) {
|
|
|
- mutex_unlock(&(par->open_lock));
|
|
|
- release_console_sem();
|
|
|
- return 0;
|
|
|
- }
|
|
|
+ if (par->ref_count == 0)
|
|
|
+ goto fail;
|
|
|
|
|
|
pci_set_power_state(dev, PCI_D0);
|
|
|
pci_restore_state(dev);
|
|
@@ -1143,8 +1140,8 @@ static int ark_pci_resume (struct pci_dev* dev)
|
|
|
arkfb_set_par(info);
|
|
|
fb_set_suspend(info, 0);
|
|
|
|
|
|
- mutex_unlock(&(par->open_lock));
|
|
|
fail:
|
|
|
+ mutex_unlock(&(par->open_lock));
|
|
|
release_console_sem();
|
|
|
return 0;
|
|
|
}
|