summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-11-20 00:57:34 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-07 00:52:25 +0300
commit5604ec6fb65ba388b698d8490f797267470b8b23 (patch)
tree3780c2282f62b600cf80117103fa9217a38b12ac
parentd72187b7cd4bac8eb9f87cabbb8d537145dc4bad (diff)
downloadlinux-5604ec6fb65ba388b698d8490f797267470b8b23.tar.xz
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>
-rw-r--r--drivers/staging/comedi/drivers/comedi_pci.h2
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)
rc = pci_request_regions(pdev, res_name);
if (rc < 0)
- comedi_pci_disable_no_regions(pdev);
+ pci_disable_device(pdev);
return rc;
}