]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: comedi: comedi_pci.h: remove unneeded wrapper
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Nov 2008 21:57:34 +0000 (13:57 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:25 +0000 (13:52 -0800)
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>
drivers/staging/comedi/drivers/comedi_pci.h

index 0f32be8ff969b05ed11ef7790ea97a167ce60b8e..5475941dadc7b43bac58c414f45c07837a13dfc6 100644 (file)
@@ -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;
 }