diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/comedi_pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_pci.h b/drivers/staging/comedi/drivers/comedi_pci.h index 0f32be8ff969..5475941dadc7 100644 --- a/drivers/staging/comedi/drivers/comedi_pci.h +++ b/drivers/staging/comedi/drivers/comedi_pci.h | |||
@@ -63,7 +63,7 @@ static inline int comedi_pci_enable(struct pci_dev *pdev, const char *res_name) | |||
63 | 63 | ||
64 | rc = pci_request_regions(pdev, res_name); | 64 | rc = pci_request_regions(pdev, res_name); |
65 | if (rc < 0) | 65 | if (rc < 0) |
66 | comedi_pci_disable_no_regions(pdev); | 66 | pci_disable_device(pdev); |
67 | 67 | ||
68 | return rc; | 68 | return rc; |
69 | } | 69 | } |