Commit 5604ec6f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d72187b7
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment