Skip to content

Commit

Permalink
Staging: comedi: comedi_pci.h: remove unneeded wrapper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Jan 6, 2009
1 parent d72187b commit 5604ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/comedi_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5604ec6

Please sign in to comment.