Staging: comedi: comedi_pci.h: remove unneeded wrapper
just call pci_disable_device() directly in comedi_pci_enable() as no wrapper is needed now that we are in the kernel tree. Cc: David Schleef <ds@schleef.org> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
d72187b7cd
Коммит
5604ec6fb6
|
@ -63,7 +63,7 @@ static inline int comedi_pci_enable(struct pci_dev *pdev, const char *res_name)
|
|||
|
||||
rc = pci_request_regions(pdev, res_name);
|
||||
if (rc < 0)
|
||||
comedi_pci_disable_no_regions(pdev);
|
||||
pci_disable_device(pdev);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче